public abstract class AbstractStatement extends Object implements Statement
Constructor and Description |
---|
AbstractStatement(BytecodeLoc loc) |
Modifier and Type | Method and Description |
---|---|
void |
addLoc(HasByteCodeLoc loc) |
boolean |
canThrow(ExceptionCheck caught) |
SSAIdentifiers<LValue> |
collectLocallyMutatedVariables(SSAIdentifierFactory<LValue,?> ssaIdentifierFactory) |
void |
collectLValueAssignments(LValueAssignmentCollector<Statement> lValueAssigmentCollector) |
void |
collectObjectCreation(CreationCollector creationCollector) |
boolean |
doesBlackListLValueReplacement(LValue lValue,
Expression expression) |
boolean |
fallsToNext() |
List<Statement> |
getCompoundParts() |
StatementContainer<Statement> |
getContainer() |
LValue |
getCreatedLValue() |
BytecodeLoc |
getLoc() |
Expression |
getRValue() |
protected Statement |
getTargetStatement(int idx) |
boolean |
isCompound() |
Statement |
outerDeepClone(CloneHelper cloneHelper) |
void |
setContainer(StatementContainer<Statement> container) |
void |
setLifetimeHint(LValue lv,
boolean usedInChildren) |
String |
toString() |
Set<LValue> |
wantsLifetimeHint() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
collectLValueUsage, equivalentUnder, getStructuredStatement, replaceSingleUsageLValues, rewriteExpressions
deepClone
getCombinedLoc
public AbstractStatement(BytecodeLoc loc)
public BytecodeLoc getLoc()
getLoc
in interface HasByteCodeLoc
public void addLoc(HasByteCodeLoc loc)
addLoc
in interface HasByteCodeLoc
public void setContainer(StatementContainer<Statement> container)
setContainer
in interface Statement
public Statement outerDeepClone(CloneHelper cloneHelper)
outerDeepClone
in interface DeepCloneable<Statement>
public LValue getCreatedLValue()
getCreatedLValue
in interface Statement
public void collectLValueAssignments(LValueAssignmentCollector<Statement> lValueAssigmentCollector)
collectLValueAssignments
in interface Statement
public boolean doesBlackListLValueReplacement(LValue lValue, Expression expression)
doesBlackListLValueReplacement
in interface Statement
public void collectObjectCreation(CreationCollector creationCollector)
collectObjectCreation
in interface Statement
public SSAIdentifiers<LValue> collectLocallyMutatedVariables(SSAIdentifierFactory<LValue,?> ssaIdentifierFactory)
collectLocallyMutatedVariables
in interface Statement
public StatementContainer<Statement> getContainer()
getContainer
in interface Statement
public Expression getRValue()
protected Statement getTargetStatement(int idx)
public boolean isCompound()
isCompound
in interface Statement
public List<Statement> getCompoundParts()
getCompoundParts
in interface Statement
public boolean fallsToNext()
fallsToNext
in interface Statement
public boolean canThrow(ExceptionCheck caught)
public Set<LValue> wantsLifetimeHint()
wantsLifetimeHint
in interface Statement
public void setLifetimeHint(LValue lv, boolean usedInChildren)
setLifetimeHint
in interface Statement
Copyright © 2011-2021. All Rights Reserved.