Class GotoStatement
- java.lang.Object
-
- org.benf.cfr.reader.bytecode.analysis.parse.statement.AbstractStatement
-
- org.benf.cfr.reader.bytecode.analysis.parse.statement.JumpingStatement
-
- org.benf.cfr.reader.bytecode.analysis.parse.statement.GotoStatement
-
- All Implemented Interfaces:
HasByteCodeLoc,DeepCloneable<Statement>,Statement,ComparableUnderEC,Dumpable
- Direct Known Subclasses:
IfStatement
public class GotoStatement extends JumpingStatement
-
-
Constructor Summary
Constructors Constructor Description GotoStatement(BytecodeLoc loc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanThrow(ExceptionCheck caught)voidcollectLValueUsage(LValueUsageCollector lValueUsageCollector)StatementdeepClone(CloneHelper cloneHelper)Dumperdump(Dumper dumper)booleanequals(java.lang.Object o)booleanequivalentUnder(java.lang.Object o, EquivalenceConstraint constraint)booleanfallsToNext()BytecodeLocgetCombinedLoc()StatementgetJumpTarget()JumpTypegetJumpType()StructuredStatementgetStructuredStatement()protected BlockIdentifiergetTargetStartBlock()booleanisConditional()voidreplaceSingleUsageLValues(LValueRewriter lValueRewriter, SSAIdentifiers ssaIdentifiers)voidrewriteExpressions(ExpressionRewriter expressionRewriter, SSAIdentifiers ssaIdentifiers)voidsetJumpType(JumpType jumpType)-
Methods inherited from class org.benf.cfr.reader.bytecode.analysis.parse.statement.AbstractStatement
addLoc, collectLocallyMutatedVariables, collectLValueAssignments, collectObjectCreation, doesBlackListLValueReplacement, getCompoundParts, getContainer, getCreatedLValue, getLoc, getRValue, getTargetStatement, isCompound, outerDeepClone, setContainer, setLifetimeHint, toString, wantsLifetimeHint
-
-
-
-
Field Detail
-
jumpType
private JumpType jumpType
-
-
Constructor Detail
-
GotoStatement
public GotoStatement(BytecodeLoc loc)
-
-
Method Detail
-
getCombinedLoc
public BytecodeLoc getCombinedLoc()
-
deepClone
public Statement deepClone(CloneHelper cloneHelper)
-
replaceSingleUsageLValues
public void replaceSingleUsageLValues(LValueRewriter lValueRewriter, SSAIdentifiers ssaIdentifiers)
-
rewriteExpressions
public void rewriteExpressions(ExpressionRewriter expressionRewriter, SSAIdentifiers ssaIdentifiers)
-
collectLValueUsage
public void collectLValueUsage(LValueUsageCollector lValueUsageCollector)
-
getJumpType
public JumpType getJumpType()
- Specified by:
getJumpTypein classJumpingStatement
-
setJumpType
public void setJumpType(JumpType jumpType)
- Specified by:
setJumpTypein classJumpingStatement
-
getJumpTarget
public Statement getJumpTarget()
- Specified by:
getJumpTargetin classJumpingStatement
-
isConditional
public boolean isConditional()
- Specified by:
isConditionalin classJumpingStatement
-
canThrow
public boolean canThrow(ExceptionCheck caught)
- Specified by:
canThrowin interfaceStatement- Overrides:
canThrowin classAbstractStatement
-
getTargetStartBlock
protected BlockIdentifier getTargetStartBlock()
-
getStructuredStatement
public StructuredStatement getStructuredStatement()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
equivalentUnder
public boolean equivalentUnder(java.lang.Object o, EquivalenceConstraint constraint)
-
fallsToNext
public boolean fallsToNext()
- Specified by:
fallsToNextin interfaceStatement- Overrides:
fallsToNextin classAbstractStatement
-
-