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 AstCodeprivate TypeReferenceprivate TypeReferenceprivate intthe offset of 'this' Expression, as computed for its bytecode by the Java compilerprivate Objectprivate UserDataStoreBasestatic final Objectstatic final inta 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 Expressionclone()final booleancontainsReferenceTo(Variable variable) final List<Expression> final AstCodegetCode()final TypeReferencefinal TypeReferencefinal intReturns the bytecode offset for 'this' expression, as computed by the Java compiler.final Object<T> TgetUserData(Key<T> key) final booleanisBranch()boolean<T> voidputUserData(Key<T> key, T value) <T> TputUserDataIfAbsent(Key<T> key, T value) <T> booleanfinal voidfinal voidsetExpectedType(TypeReference expectedType) final voidsetInferredType(TypeReference inferredType) final voidsetOperand(Object operand) final voidwriteTo(ITextOutput output) Methods inherited from class 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:
getChildrenin classNode
-
containsReferenceTo
-
writeTo
-
clone
-
isEquivalentTo
-
getUserData
- Specified by:
getUserDatain interfaceUserDataStore
-
putUserData
- Specified by:
putUserDatain interfaceUserDataStore
-
putUserDataIfAbsent
- Specified by:
putUserDataIfAbsentin interfaceUserDataStore
-
replace
-