Class StructuredReturn
java.lang.Object
org.benf.cfr.reader.bytecode.analysis.structured.statement.AbstractStructuredStatement
org.benf.cfr.reader.bytecode.analysis.structured.statement.StructuredReturn
- All Implemented Interfaces:
HasByteCodeLoc
,Matcher<StructuredStatement>
,BoxingProcessor
,StructuredStatement
,Dumpable
,TypeUsageCollectable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStructuredReturn
(BytecodeLoc loc, Expression value, JavaTypeInstance fnReturnType) -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyNonArgExpressionRewriter
(ExpressionRewriter expressionRewriter, SSAIdentifiers ssaIdentifiers, StatementContainer statementContainer, ExpressionRewriterFlags flags) boolean
canFall()
void
collectTypeUsages
(TypeUsageCollector collector) boolean
getValue()
void
boolean
match
(MatchIterator<StructuredStatement> matchIterator, MatchResultCollector matchResultCollector) boolean
rewriteBoxing
(PrimitiveBoxingRewriter boxingRewriter) 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, claimBlock, fallsNopToNext, findCreatedHere, getBreakableBlockOrNull, getContainer, getInline, getLoc, informBlockHeirachy, inlineable, isEffectivelyNOP, isProperlyStructured, isRecursivelyStructured, isScopeBlock, markCreator, setContainer, suggestName, supportsBreak, supportsContinueBreak, toString, transformStructuredChildrenInReverse
-
Field Details
-
value
-
fnReturnType
-
-
Constructor Details
-
StructuredReturn
-
StructuredReturn
-
-
Method Details
-
getCombinedLoc
- Specified by:
getCombinedLoc
in interfaceHasByteCodeLoc
-
collectTypeUsages
- Specified by:
collectTypeUsages
in interfaceTypeUsageCollectable
-
dump
-
getValue
-
transformStructuredChildren
public void transformStructuredChildren(StructuredStatementTransformer transformer, StructuredScope scope) - Specified by:
transformStructuredChildren
in interfaceStructuredStatement
-
linearizeInto
- Specified by:
linearizeInto
in interfaceStructuredStatement
-
traceLocalVariableScope
- Specified by:
traceLocalVariableScope
in interfaceStructuredStatement
-
rewriteBoxing
- Specified by:
rewriteBoxing
in interfaceBoxingProcessor
-
applyNonArgExpressionRewriter
public void applyNonArgExpressionRewriter(ExpressionRewriter expressionRewriter, SSAIdentifiers ssaIdentifiers, StatementContainer statementContainer, ExpressionRewriterFlags flags) - Specified by:
applyNonArgExpressionRewriter
in interfaceBoxingProcessor
-
rewriteExpressions
- Specified by:
rewriteExpressions
in interfaceStructuredStatement
-
equals
-
canFall
public boolean canFall()- Specified by:
canFall
in interfaceStructuredStatement
- Overrides:
canFall
in classAbstractStructuredStatement
-
match
public boolean match(MatchIterator<StructuredStatement> matchIterator, MatchResultCollector matchResultCollector) - Specified by:
match
in interfaceMatcher<StructuredStatement>
- Overrides:
match
in classAbstractStructuredStatement
-