Class StructuredComment
- java.lang.Object
-
- org.benf.cfr.reader.bytecode.analysis.structured.statement.AbstractStructuredStatement
-
- org.benf.cfr.reader.bytecode.analysis.structured.statement.StructuredComment
-
- All Implemented Interfaces:
HasByteCodeLoc
,Matcher<StructuredStatement>
,StructuredStatement
,Dumpable
,TypeUsageCollectable
- Direct Known Subclasses:
StructuredFakeDecompFailure
public class StructuredComment extends AbstractStructuredStatement
-
-
Field Summary
Fields Modifier and Type Field Description static StructuredComment
EMPTY_COMMENT
private Expression
expression
-
Constructor Summary
Constructors Constructor Description StructuredComment(java.lang.String text)
StructuredComment(Expression expression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
collectTypeUsages(TypeUsageCollector collector)
Dumper
dump(Dumper dumper)
BytecodeLoc
getCombinedLoc()
boolean
isEffectivelyNOP()
void
linearizeInto(java.util.List<StructuredStatement> out)
void
rewriteExpressions(ExpressionRewriter expressionRewriter)
void
traceLocalVariableScope(LValueScopeDiscoverer scopeDiscoverer)
void
transformStructuredChildren(StructuredStatementTransformer transformer, StructuredScope scope)
-
Methods inherited from class org.benf.cfr.reader.bytecode.analysis.structured.statement.AbstractStructuredStatement
addLoc, alwaysDefines, canDefine, canFall, claimBlock, fallsNopToNext, findCreatedHere, getBreakableBlockOrNull, getContainer, getInline, getLoc, informBlockHeirachy, inlineable, isProperlyStructured, isRecursivelyStructured, isScopeBlock, markCreator, match, setContainer, suggestName, supportsBreak, supportsContinueBreak, toString, transformStructuredChildrenInReverse
-
-
-
-
Field Detail
-
EMPTY_COMMENT
public static final StructuredComment EMPTY_COMMENT
-
expression
private Expression expression
-
-
Constructor Detail
-
StructuredComment
public StructuredComment(Expression expression)
-
StructuredComment
public StructuredComment(java.lang.String text)
-
-
Method Detail
-
getCombinedLoc
public BytecodeLoc getCombinedLoc()
-
collectTypeUsages
public void collectTypeUsages(TypeUsageCollector collector)
-
traceLocalVariableScope
public void traceLocalVariableScope(LValueScopeDiscoverer scopeDiscoverer)
-
transformStructuredChildren
public void transformStructuredChildren(StructuredStatementTransformer transformer, StructuredScope scope)
-
linearizeInto
public void linearizeInto(java.util.List<StructuredStatement> out)
-
rewriteExpressions
public void rewriteExpressions(ExpressionRewriter expressionRewriter)
-
isEffectivelyNOP
public boolean isEffectivelyNOP()
- Specified by:
isEffectivelyNOP
in interfaceStructuredStatement
- Overrides:
isEffectivelyNOP
in classAbstractStructuredStatement
-
-