Class StructuredAssignment
- java.lang.Object
-
- org.benf.cfr.reader.bytecode.analysis.structured.statement.AbstractStructuredStatement
-
- org.benf.cfr.reader.bytecode.analysis.structured.statement.StructuredAssignment
-
- All Implemented Interfaces:
HasByteCodeLoc
,Matcher<StructuredStatement>
,BoxingProcessor
,StructuredStatement
,Dumpable
,TypeUsageCollectable
public class StructuredAssignment extends AbstractStructuredStatement implements BoxingProcessor
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
creator
private LValue
lvalue
private Expression
rvalue
-
Constructor Summary
Constructors Constructor Description StructuredAssignment(BytecodeLoc loc, LValue lvalue, Expression rvalue)
StructuredAssignment(BytecodeLoc loc, LValue lvalue, Expression rvalue, boolean creator)
-
Method Summary
-
Methods inherited from class org.benf.cfr.reader.bytecode.analysis.structured.statement.AbstractStructuredStatement
addLoc, alwaysDefines, canDefine, canFall, claimBlock, fallsNopToNext, getBreakableBlockOrNull, getContainer, getInline, getLoc, informBlockHeirachy, inlineable, isEffectivelyNOP, isProperlyStructured, isRecursivelyStructured, isScopeBlock, setContainer, suggestName, supportsBreak, supportsContinueBreak, toString, transformStructuredChildrenInReverse
-
-
-
-
Field Detail
-
lvalue
private LValue lvalue
-
rvalue
private Expression rvalue
-
creator
private boolean creator
-
-
Constructor Detail
-
StructuredAssignment
public StructuredAssignment(BytecodeLoc loc, LValue lvalue, Expression rvalue)
-
StructuredAssignment
public StructuredAssignment(BytecodeLoc loc, LValue lvalue, Expression rvalue, boolean creator)
-
-
Method Detail
-
getCombinedLoc
public BytecodeLoc getCombinedLoc()
- Specified by:
getCombinedLoc
in interfaceHasByteCodeLoc
-
isCreator
public boolean isCreator(LValue lvalue)
-
collectTypeUsages
public void collectTypeUsages(TypeUsageCollector collector)
- Specified by:
collectTypeUsages
in interfaceTypeUsageCollectable
-
transformStructuredChildren
public void transformStructuredChildren(StructuredStatementTransformer transformer, StructuredScope scope)
- Specified by:
transformStructuredChildren
in interfaceStructuredStatement
-
linearizeInto
public void linearizeInto(java.util.List<StructuredStatement> out)
- Specified by:
linearizeInto
in interfaceStructuredStatement
-
traceLocalVariableScope
public void traceLocalVariableScope(LValueScopeDiscoverer scopeDiscoverer)
- Specified by:
traceLocalVariableScope
in interfaceStructuredStatement
-
markCreator
public void markCreator(LValue scopedEntity, StatementContainer<StructuredStatement> hint)
- Specified by:
markCreator
in interfaceStructuredStatement
- Overrides:
markCreator
in classAbstractStructuredStatement
-
findCreatedHere
public java.util.List<LValue> findCreatedHere()
- Specified by:
findCreatedHere
in interfaceStructuredStatement
- Overrides:
findCreatedHere
in classAbstractStructuredStatement
-
getLvalue
public LValue getLvalue()
-
getRvalue
public Expression getRvalue()
-
match
public boolean match(MatchIterator<StructuredStatement> matchIterator, MatchResultCollector matchResultCollector)
- Specified by:
match
in interfaceMatcher<StructuredStatement>
- Overrides:
match
in classAbstractStructuredStatement
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
rewriteExpressions
public void rewriteExpressions(ExpressionRewriter expressionRewriter)
- Specified by:
rewriteExpressions
in interfaceStructuredStatement
-
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
-
-