Package com.strobel.decompiler.ast
Class Expression
java.lang.Object
com.strobel.decompiler.ast.Node
com.strobel.decompiler.ast.Expression
- All Implemented Interfaces:
UserDataStore
,Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SmartList
<Expression> private AstCode
private TypeReference
private TypeReference
private int
the offset of 'this' Expression, as computed for its bytecode by the Java compilerprivate Object
private UserDataStoreBase
static final Object
static final int
a constant to indicate that no bytecode offset is known for an expression -
Constructor Summary
ConstructorsConstructorDescriptionExpression
(AstCode code, Object operand, int offset, Expression... arguments) Expression
(AstCode code, Object operand, int offset, List<Expression> arguments) -
Method Summary
Modifier and TypeMethodDescriptionfinal Expression
clone()
final boolean
containsReferenceTo
(Variable variable) final List
<Expression> final AstCode
getCode()
final TypeReference
final TypeReference
final int
Returns the bytecode offset for 'this' expression, as computed by the Java compiler.final Object
<T> T
getUserData
(Key<T> key) final boolean
isBranch()
boolean
<T> void
putUserData
(Key<T> key, T value) <T> T
putUserDataIfAbsent
(Key<T> key, T value) <T> boolean
final void
final void
setExpectedType
(TypeReference expectedType) final void
setInferredType
(TypeReference inferredType) final void
setOperand
(Object operand) final void
writeTo
(ITextOutput output) Methods inherited from class com.strobel.decompiler.ast.Node
getChildrenAndSelfRecursive, getChildrenAndSelfRecursive, getChildrenAndSelfRecursive, getChildrenAndSelfRecursive, getChildrenAndSelfRecursive, getSelfAndChildrenRecursive, getSelfAndChildrenRecursive, getSelfAndChildrenRecursive, getSelfAndChildrenRecursive, getSelfAndChildrenRecursive, isConditionalControlFlow, isUnconditionalControlFlow, toString
-
Field Details
-
ANY_OPERAND
-
MYSTERY_OFFSET
public static final int MYSTERY_OFFSETa constant to indicate that no bytecode offset is known for an expression- See Also:
-
_arguments
-
_ranges
-
_code
-
_operand
-
_offset
private int _offsetthe offset of 'this' Expression, as computed for its bytecode by the Java compiler -
_expectedType
-
_inferredType
-
_userData
-
-
Constructor Details
-
Expression
-
Expression
-
-
Method Details
-
getArguments
-
getCode
-
setCode
-
getOperand
-
setOperand
-
getOffset
public final int getOffset()Returns the bytecode offset for 'this' expression, as computed by the Java compiler. -
getExpectedType
-
setExpectedType
-
getInferredType
-
setInferredType
-
isBranch
public final boolean isBranch() -
getBranchTargets
-
getRanges
-
getChildren
- Overrides:
getChildren
in classNode
-
containsReferenceTo
-
writeTo
-
clone
-
isEquivalentTo
-
getUserData
- Specified by:
getUserData
in interfaceUserDataStore
-
putUserData
- Specified by:
putUserData
in interfaceUserDataStore
-
putUserDataIfAbsent
- Specified by:
putUserDataIfAbsent
in interfaceUserDataStore
-
replace
- Specified by:
replace
in interfaceUserDataStore
-