Class VarExprent
- java.lang.Object
-
- org.jetbrains.java.decompiler.modules.decompiler.exps.Exprent
-
- org.jetbrains.java.decompiler.modules.decompiler.exps.VarExprent
-
- All Implemented Interfaces:
IMatchable
public class VarExprent extends Exprent
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jetbrains.java.decompiler.modules.decompiler.exps.Exprent
Exprent.Type
-
Nested classes/interfaces inherited from interface org.jetbrains.java.decompiler.struct.match.IMatchable
IMatchable.MatchProperties
-
-
Field Summary
Fields Modifier and Type Field Description static intSTACK_BASEstatic java.lang.StringVAR_NAMELESS_ENCLOSURE-
Fields inherited from class org.jetbrains.java.decompiler.modules.decompiler.exps.Exprent
BOTH_FLAGS, bytecode, id, inferredLambdaTypes, MULTIPLE_USES, SIDE_EFFECTS_FREE, type
-
-
Constructor Summary
Constructors Constructor Description VarExprent(int index, VarType varType, VarProcessor processor)VarExprent(int index, VarType varType, VarProcessor processor, java.util.BitSet bytecode)
-
Method Summary
-
Methods inherited from class org.jetbrains.java.decompiler.modules.decompiler.exps.Exprent
addBytecodeOffsets, appendParameters, containsExprent, containsVar, findObject, gatherGenerics, getAllExprents, getAllExprents, getAllExprents, getAllVariables, getGenericArgs, getNamedGenerics, getPrecedence, measureBytecode, measureBytecode, measureBytecode, replaceExprent, setInvocationInstance, setIsQualifier, sortIndexed, toJava
-
-
-
-
Field Detail
-
STACK_BASE
public static final int STACK_BASE
- See Also:
- Constant Field Values
-
VAR_NAMELESS_ENCLOSURE
public static final java.lang.String VAR_NAMELESS_ENCLOSURE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
VarExprent
public VarExprent(int index, VarType varType, VarProcessor processor)
-
VarExprent
public VarExprent(int index, VarType varType, VarProcessor processor, java.util.BitSet bytecode)
-
-
Method Detail
-
getExprType
public VarType getExprType()
- Overrides:
getExprTypein classExprent
-
getInferredExprType
public VarType getInferredExprType(VarType upperBound)
- Overrides:
getInferredExprTypein classExprent
-
getExprentUse
public int getExprentUse()
- Overrides:
getExprentUsein classExprent
-
getAllExprents
public java.util.List<Exprent> getAllExprents(java.util.List<Exprent> lst)
- Specified by:
getAllExprentsin classExprent
-
toJava
public TextBuffer toJava(int indent)
-
getVarVersionPair
public VarVersionPair getVarVersionPair()
-
getDefinitionType
public java.lang.String getDefinitionType()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
equalsVersions
public boolean equalsVersions(java.lang.Object o)
-
getBytecodeRange
public void getBytecodeRange(java.util.BitSet values)
- Specified by:
getBytecodeRangein classExprent
-
getIndex
public int getIndex()
-
setIndex
public void setIndex(int index)
-
getVarType
public VarType getVarType()
-
setVarType
public void setVarType(VarType varType)
-
isDefinition
public boolean isDefinition()
-
setDefinition
public void setDefinition(boolean definition)
-
getProcessor
public VarProcessor getProcessor()
-
getVersion
public int getVersion()
-
setVersion
public void setVersion(int version)
-
isClassDef
public boolean isClassDef()
-
setClassDef
public void setClassDef(boolean classDef)
-
isStack
public boolean isStack()
-
setStack
public void setStack(boolean stack)
-
getBackingInstr
public Instruction getBackingInstr()
-
setBackingInstr
public void setBackingInstr(Instruction backing)
-
setLVT
public void setLVT(StructLocalVariableTableAttribute.LocalVariable var)
-
getLVT
public StructLocalVariableTableAttribute.LocalVariable getLVT()
-
setEffectivelyFinal
public void setEffectivelyFinal(boolean isEffectivelyFinal)
-
isEffectivelyFinal
public boolean isEffectivelyFinal()
-
getName
public java.lang.String getName()
-
setBoundType
public void setBoundType(VarType boundType)
-
checkExprTypeBounds
public CheckTypesResult checkExprTypeBounds()
- Overrides:
checkExprTypeBoundsin classExprent
-
isVarReferenced
public boolean isVarReferenced(Statement stat, VarExprent... whitelist)
-
isVarReferenced
public boolean isVarReferenced(Exprent exp, VarExprent... whitelist)
-
allowNewlineAfterQualifier
public boolean allowNewlineAfterQualifier()
- Overrides:
allowNewlineAfterQualifierin classExprent
-
match
public boolean match(MatchNode matchNode, MatchEngine engine)
- Specified by:
matchin interfaceIMatchable- Overrides:
matchin classExprent
-
-