Class AbstractStructuredStatement
- java.lang.Object
-
- org.benf.cfr.reader.bytecode.analysis.structured.statement.AbstractStructuredStatement
-
- All Implemented Interfaces:
HasByteCodeLoc,Matcher<StructuredStatement>,StructuredStatement,Dumpable,TypeUsageCollectable
- Direct Known Subclasses:
AbstractStructuredBlockStatement,AbstractStructuredContinue,AbstractUnStructuredStatement,Block,StructuredAssert,StructuredAssignment,StructuredBreak,StructuredCatch,StructuredComment,StructuredDefinition,StructuredExpressionStatement,StructuredExpressionYield,StructuredFinally,StructuredIf,StructuredReturn,StructuredThrow,StructuredTry
public abstract class AbstractStructuredStatement extends java.lang.Object implements StructuredStatement
-
-
Field Summary
Fields Modifier and Type Field Description private Op04StructuredStatementcontainerprivate BytecodeLocloc
-
Constructor Summary
Constructors Constructor Description AbstractStructuredStatement(BytecodeLoc loc)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.benf.cfr.reader.bytecode.analysis.loc.HasByteCodeLoc
getCombinedLoc
-
Methods inherited from interface org.benf.cfr.reader.bytecode.analysis.structured.StructuredStatement
linearizeInto, rewriteExpressions, traceLocalVariableScope, transformStructuredChildren
-
Methods inherited from interface org.benf.cfr.reader.util.TypeUsageCollectable
collectTypeUsages
-
-
-
-
Field Detail
-
loc
private BytecodeLoc loc
-
container
private Op04StructuredStatement container
-
-
Constructor Detail
-
AbstractStructuredStatement
public AbstractStructuredStatement(BytecodeLoc loc)
-
-
Method Detail
-
addLoc
public void addLoc(HasByteCodeLoc loc)
- Specified by:
addLocin interfaceHasByteCodeLoc
-
getLoc
public BytecodeLoc getLoc()
- Specified by:
getLocin interfaceHasByteCodeLoc
-
getContainer
public Op04StructuredStatement getContainer()
- Specified by:
getContainerin interfaceStructuredStatement
-
setContainer
public void setContainer(Op04StructuredStatement container)
- Specified by:
setContainerin interfaceStructuredStatement
-
transformStructuredChildrenInReverse
public void transformStructuredChildrenInReverse(StructuredStatementTransformer transformer, StructuredScope scope)
- Specified by:
transformStructuredChildrenInReversein interfaceStructuredStatement
-
claimBlock
public StructuredStatement claimBlock(Op04StructuredStatement innerBlock, BlockIdentifier blockIdentifier, java.util.Vector<BlockIdentifier> blocksCurrentlyIn)
- Specified by:
claimBlockin interfaceStructuredStatement
-
informBlockHeirachy
public StructuredStatement informBlockHeirachy(java.util.Vector<BlockIdentifier> blockIdentifiers)
- Specified by:
informBlockHeirachyin interfaceStructuredStatement
-
isProperlyStructured
public boolean isProperlyStructured()
- Specified by:
isProperlyStructuredin interfaceStructuredStatement
-
isRecursivelyStructured
public boolean isRecursivelyStructured()
- Specified by:
isRecursivelyStructuredin interfaceStructuredStatement
-
getBreakableBlockOrNull
public BlockIdentifier getBreakableBlockOrNull()
- Specified by:
getBreakableBlockOrNullin interfaceStructuredStatement
-
match
public boolean match(MatchIterator<StructuredStatement> matchIterator, MatchResultCollector matchResultCollector)
- Specified by:
matchin interfaceMatcher<StructuredStatement>
-
markCreator
public void markCreator(LValue scopedEntity, StatementContainer<StructuredStatement> hint)
- Specified by:
markCreatorin interfaceStructuredStatement
-
alwaysDefines
public boolean alwaysDefines(LValue scopedEntity)
- Specified by:
alwaysDefinesin interfaceStructuredStatement
-
canDefine
public boolean canDefine(LValue scopedEntity, ScopeDiscoverInfoCache factCache)
- Specified by:
canDefinein interfaceStructuredStatement
-
isScopeBlock
public boolean isScopeBlock()
- Specified by:
isScopeBlockin interfaceStructuredStatement
-
supportsContinueBreak
public boolean supportsContinueBreak()
- Specified by:
supportsContinueBreakin interfaceStructuredStatement
-
supportsBreak
public boolean supportsBreak()
- Specified by:
supportsBreakin interfaceStructuredStatement
-
findCreatedHere
public java.util.List<LValue> findCreatedHere()
- Specified by:
findCreatedHerein interfaceStructuredStatement
-
suggestName
public java.lang.String suggestName(LocalVariable createdHere, Predicate<java.lang.String> testNameUsedFn)
- Specified by:
suggestNamein interfaceStructuredStatement
-
toString
public final java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
inlineable
public boolean inlineable()
- Specified by:
inlineablein interfaceStructuredStatement
-
getInline
public Op04StructuredStatement getInline()
- Specified by:
getInlinein interfaceStructuredStatement
-
isEffectivelyNOP
public boolean isEffectivelyNOP()
- Specified by:
isEffectivelyNOPin interfaceStructuredStatement
-
canFall
public boolean canFall()
- Specified by:
canFallin interfaceStructuredStatement
-
fallsNopToNext
public boolean fallsNopToNext()
- Specified by:
fallsNopToNextin interfaceStructuredStatement
-
-