Class NewAnonymousArray
- java.lang.Object
-
- org.benf.cfr.reader.bytecode.analysis.parse.expression.AbstractExpression
-
- org.benf.cfr.reader.bytecode.analysis.parse.expression.AbstractNewArray
-
- org.benf.cfr.reader.bytecode.analysis.parse.expression.NewAnonymousArray
-
- All Implemented Interfaces:
HasByteCodeLoc
,Expression
,BoxingProcessor
,DeepCloneable<Expression>
,ComparableUnderEC
,Dumpable
,DumpableWithPrecedence
,TypeUsageCollectable
public class NewAnonymousArray extends AbstractNewArray implements BoxingProcessor
1d array only.
-
-
Field Summary
Fields Modifier and Type Field Description private JavaTypeInstance
allocatedType
private boolean
isCompletelyAnonymous
private int
numDims
private java.util.List<Expression>
values
-
Constructor Summary
Constructors Constructor Description NewAnonymousArray(BytecodeLoc loc, InferredJavaType type, int numDims, java.util.List<Expression> values, boolean isCompletelyAnonymous)
-
Method Summary
-
Methods inherited from class org.benf.cfr.reader.bytecode.analysis.parse.expression.AbstractNewArray
getPrecedence
-
Methods inherited from class org.benf.cfr.reader.bytecode.analysis.parse.expression.AbstractExpression
addLoc, canPushDownInto, canThrow, dump, dumpWithOuterPrecedence, getComputedLiteral, getInferredJavaType, getLoc, isSimple, isValidStatement, outerDeepClone, pushDown, toString, visit
-
-
-
-
Field Detail
-
allocatedType
private JavaTypeInstance allocatedType
-
numDims
private int numDims
-
values
private java.util.List<Expression> values
-
isCompletelyAnonymous
private boolean isCompletelyAnonymous
-
-
Constructor Detail
-
NewAnonymousArray
public NewAnonymousArray(BytecodeLoc loc, InferredJavaType type, int numDims, java.util.List<Expression> values, boolean isCompletelyAnonymous)
-
-
Method Detail
-
getCombinedLoc
public BytecodeLoc getCombinedLoc()
- Specified by:
getCombinedLoc
in interfaceHasByteCodeLoc
-
collectTypeUsages
public void collectTypeUsages(TypeUsageCollector collector)
- Specified by:
collectTypeUsages
in interfaceTypeUsageCollectable
- Overrides:
collectTypeUsages
in classAbstractExpression
-
rewriteBoxing
public boolean rewriteBoxing(PrimitiveBoxingRewriter boxingRewriter)
- Specified by:
rewriteBoxing
in interfaceBoxingProcessor
-
applyNonArgExpressionRewriter
public void applyNonArgExpressionRewriter(ExpressionRewriter expressionRewriter, SSAIdentifiers ssaIdentifiers, StatementContainer statementContainer, ExpressionRewriterFlags flags)
- Specified by:
applyNonArgExpressionRewriter
in interfaceBoxingProcessor
-
deepClone
public Expression deepClone(CloneHelper cloneHelper)
- Specified by:
deepClone
in interfaceDeepCloneable<Expression>
-
dumpInner
public Dumper dumpInner(Dumper d)
- Specified by:
dumpInner
in classAbstractExpression
-
getValues
public java.util.List<Expression> getValues()
-
replaceSingleUsageLValues
public Expression replaceSingleUsageLValues(LValueRewriter lValueRewriter, SSAIdentifiers ssaIdentifiers, StatementContainer statementContainer)
- Specified by:
replaceSingleUsageLValues
in interfaceExpression
-
applyExpressionRewriter
public Expression applyExpressionRewriter(ExpressionRewriter expressionRewriter, SSAIdentifiers ssaIdentifiers, StatementContainer statementContainer, ExpressionRewriterFlags flags)
- Specified by:
applyExpressionRewriter
in interfaceExpression
-
applyReverseExpressionRewriter
public Expression applyReverseExpressionRewriter(ExpressionRewriter expressionRewriter, SSAIdentifiers ssaIdentifiers, StatementContainer statementContainer, ExpressionRewriterFlags flags)
- Specified by:
applyReverseExpressionRewriter
in interfaceExpression
-
collectUsedLValues
public void collectUsedLValues(LValueUsageCollector lValueUsageCollector)
- Specified by:
collectUsedLValues
in interfaceExpression
-
getNumDims
public int getNumDims()
- Specified by:
getNumDims
in classAbstractNewArray
-
getNumSizedDims
public int getNumSizedDims()
- Specified by:
getNumSizedDims
in classAbstractNewArray
-
getDimSize
public Expression getDimSize(int dim)
- Specified by:
getDimSize
in classAbstractNewArray
-
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals
in classAbstractExpression
-
equivalentUnder
public boolean equivalentUnder(java.lang.Object o, EquivalenceConstraint constraint)
- Specified by:
equivalentUnder
in interfaceComparableUnderEC
- Specified by:
equivalentUnder
in interfaceExpression
-
-