Class StaticVariable
- java.lang.Object
-
- org.benf.cfr.reader.bytecode.analysis.parse.lvalue.AbstractLValue
-
- org.benf.cfr.reader.bytecode.analysis.parse.lvalue.AbstractFieldVariable
-
- org.benf.cfr.reader.bytecode.analysis.parse.lvalue.StaticVariable
-
- All Implemented Interfaces:
LValue
,DeepCloneable<LValue>
,Dumpable
,DumpableWithPrecedence
,TypeUsageCollectable
- Direct Known Subclasses:
WildcardMatch.StaticVariableWildcard
public class StaticVariable extends AbstractFieldVariable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.benf.cfr.reader.bytecode.analysis.parse.LValue
LValue.Creation
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
knownSimple
-
Constructor Summary
Constructors Modifier Constructor Description private
StaticVariable(StaticVariable other, boolean knownSimple)
StaticVariable(InferredJavaType type, JavaTypeInstance clazz, java.lang.String varName)
StaticVariable(ClassFile classFile, ClassFileField classFileField, boolean local)
StaticVariable(ConstantPoolEntry field)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LValue
applyExpressionRewriter(ExpressionRewriter expressionRewriter, SSAIdentifiers ssaIdentifiers, StatementContainer statementContainer, ExpressionRewriterFlags flags)
boolean
canThrow(ExceptionCheck caught)
LValue
deepClone(CloneHelper cloneHelper)
Dumper
dumpInner(Dumper d)
boolean
equals(java.lang.Object o)
StaticVariable
getNonSimpleCopy()
Precedence
getPrecedence()
StaticVariable
getSimpleCopy()
int
hashCode()
LValue
replaceSingleUsageLValues(LValueRewriter lValueRewriter, SSAIdentifiers ssaIdentifiers, StatementContainer statementContainer)
-
Methods inherited from class org.benf.cfr.reader.bytecode.analysis.parse.lvalue.AbstractFieldVariable
collectLValueAssignments, collectTypeUsages, collectVariableMutation, getClassFileField, getField, getFieldName, getNumberOfCreators, getOwningClassType, getRawFieldName, isFakeIgnored, isFinal, isHiddenDeclaration, isVar, markFinal, markVar
-
Methods inherited from class org.benf.cfr.reader.bytecode.analysis.parse.lvalue.AbstractLValue
collectLValueUsage, doesBlackListLValueReplacement, dump, dump, dumpWithOuterPrecedence, getAnnotatedCreationType, getInferredJavaType, outerDeepClone, toString, typeToString, validIterator
-
-
-
-
Constructor Detail
-
StaticVariable
public StaticVariable(ConstantPoolEntry field)
-
StaticVariable
public StaticVariable(InferredJavaType type, JavaTypeInstance clazz, java.lang.String varName)
-
StaticVariable
public StaticVariable(ClassFile classFile, ClassFileField classFileField, boolean local)
-
StaticVariable
private StaticVariable(StaticVariable other, boolean knownSimple)
-
-
Method Detail
-
getSimpleCopy
public StaticVariable getSimpleCopy()
-
getNonSimpleCopy
public StaticVariable getNonSimpleCopy()
-
getPrecedence
public Precedence getPrecedence()
- Specified by:
getPrecedence
in interfaceDumpableWithPrecedence
- Specified by:
getPrecedence
in classAbstractLValue
-
canThrow
public boolean canThrow(ExceptionCheck caught)
- Specified by:
canThrow
in interfaceLValue
- Overrides:
canThrow
in classAbstractLValue
-
dumpInner
public Dumper dumpInner(Dumper d)
- Specified by:
dumpInner
in classAbstractLValue
-
deepClone
public LValue deepClone(CloneHelper cloneHelper)
-
replaceSingleUsageLValues
public LValue replaceSingleUsageLValues(LValueRewriter lValueRewriter, SSAIdentifiers ssaIdentifiers, StatementContainer statementContainer)
-
applyExpressionRewriter
public LValue applyExpressionRewriter(ExpressionRewriter expressionRewriter, SSAIdentifiers ssaIdentifiers, StatementContainer statementContainer, ExpressionRewriterFlags flags)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classAbstractFieldVariable
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractFieldVariable
-
-