trait ValueInformation extends AnyRef
Encapsulates the available type information about a DomainValue
.
- Source
- ValueInformation.scala
- Alphabetic
- By Inheritance
- ValueInformation
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def computationalType: ComputationalType
The computational type of the value if this object represents a legal value.
The computational type of the value if this object represents a legal value.
The precise computational type is, e.g., needed to calculate the effect of generic stack manipulation instructions (e.g.,
DUP_...
andSWAP
) on the stack as well as to calculate the jump targets ofRET
instructions and to determine which values are actually copied by, e.g., thedup_XX
instructions.- Exceptions thrown
IllegalStateException
if this value is illegal or void.- Note
The computational type has to be precise/correct.
- abstract def hasCategory2ComputationalType: Boolean
Returns
true
if and only if the value has the computational type 2;false
in all other cases (including the case where this value is illegal!). - abstract def isArrayValue: Answer
Returns
Yes
if the value is _not null_ and the least upper type bound is anArrayType
; the value isUnknown
if the least upper type bound isArrayType
but the value may be null; in all other casesNo
is returned; in particular if the value is known to be null.Returns
Yes
if the value is _not null_ and the least upper type bound is anArrayType
; the value isUnknown
if the least upper type bound isArrayType
but the value may be null; in all other casesNo
is returned; in particular if the value is known to be null.No
is also returned if the value's type isObject
orSeriablizable
orCloneable
. - abstract def isIllegalValue: Boolean
Returns
true
iff this value is not a legal value according to the JVM specification.Returns
true
iff this value is not a legal value according to the JVM specification. Such values cannot be used to perform any computations and will generally not occur in static analyses unless the analysis or the bytecode is buggy.- Note
An IsIllegalValue can always be distinguished from a void value.
- abstract def isPrimitiveValue: Boolean
Returns
true
in case of a value with primitive type.Returns
true
in case of a value with primitive type.- Exceptions thrown
IllegalStateException
if this value is illegal.
- abstract def isReferenceValue: Boolean
Returns
true
if the value has a reference type.Returns
true
if the value has a reference type.- Exceptions thrown
IllegalStateException
if this value is illegal.
- abstract def isVoid: Boolean
Returns
true
if this value represents void. - abstract def toCanonicalForm: ValueInformation
Returns a
ValueInformation
object that just captures the basic information as defined by thisvalue
framework.Returns a
ValueInformation
object that just captures the basic information as defined by thisvalue
framework. The returned value information object will be independent of the underlying representation from which it was derived. - abstract def verificationTypeInfo: VerificationTypeInfo
The type of this value as used by the org.opalj.br.StackMapTable attribute.
The type of this value as used by the org.opalj.br.StackMapTable attribute.
- Exceptions thrown
IllegalStateException
if this value represents void or a return address value.
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asPrimitiveValue: IsPrimitiveValue[_ <: BaseType]
- def asReferenceValue: IsReferenceValue
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated