Class StructuredSynchronized
- java.lang.Object
-
- org.benf.cfr.reader.bytecode.analysis.structured.statement.AbstractStructuredStatement
-
- org.benf.cfr.reader.bytecode.analysis.structured.statement.AbstractStructuredBlockStatement
-
- org.benf.cfr.reader.bytecode.analysis.structured.statement.StructuredSynchronized
-
- All Implemented Interfaces:
HasByteCodeLoc,Matcher<StructuredStatement>,StructuredStatement,Dumpable,TypeUsageCollectable
public class StructuredSynchronized extends AbstractStructuredBlockStatement
-
-
Field Summary
Fields Modifier and Type Field Description private Expressionmonitor
-
Constructor Summary
Constructors Constructor Description StructuredSynchronized(BytecodeLoc loc, Expression monitor, Op04StructuredStatement body)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcollectTypeUsages(TypeUsageCollector collector)Dumperdump(Dumper dumper)booleanfallsNopToNext()BytecodeLocgetCombinedLoc()booleanisProperlyStructured()booleanisScopeBlock()voidlinearizeInto(java.util.List<StructuredStatement> out)booleanmatch(MatchIterator<StructuredStatement> matchIterator, MatchResultCollector matchResultCollector)voidrewriteExpressions(ExpressionRewriter expressionRewriter)voidtraceLocalVariableScope(LValueScopeDiscoverer scopeDiscoverer)-
Methods inherited from class org.benf.cfr.reader.bytecode.analysis.structured.statement.AbstractStructuredBlockStatement
getBody, isRecursivelyStructured, transformStructuredChildren
-
Methods inherited from class org.benf.cfr.reader.bytecode.analysis.structured.statement.AbstractStructuredStatement
addLoc, alwaysDefines, canDefine, canFall, claimBlock, findCreatedHere, getBreakableBlockOrNull, getContainer, getInline, getLoc, informBlockHeirachy, inlineable, isEffectivelyNOP, markCreator, setContainer, suggestName, supportsBreak, supportsContinueBreak, toString, transformStructuredChildrenInReverse
-
-
-
-
Field Detail
-
monitor
private Expression monitor
-
-
Constructor Detail
-
StructuredSynchronized
StructuredSynchronized(BytecodeLoc loc, Expression monitor, Op04StructuredStatement body)
-
-
Method Detail
-
getCombinedLoc
public BytecodeLoc getCombinedLoc()
-
collectTypeUsages
public void collectTypeUsages(TypeUsageCollector collector)
- Specified by:
collectTypeUsagesin interfaceTypeUsageCollectable- Overrides:
collectTypeUsagesin classAbstractStructuredBlockStatement
-
isProperlyStructured
public boolean isProperlyStructured()
- Specified by:
isProperlyStructuredin interfaceStructuredStatement- Overrides:
isProperlyStructuredin classAbstractStructuredStatement
-
fallsNopToNext
public boolean fallsNopToNext()
- Specified by:
fallsNopToNextin interfaceStructuredStatement- Overrides:
fallsNopToNextin classAbstractStructuredStatement
-
isScopeBlock
public boolean isScopeBlock()
- Specified by:
isScopeBlockin interfaceStructuredStatement- Overrides:
isScopeBlockin classAbstractStructuredStatement
-
linearizeInto
public void linearizeInto(java.util.List<StructuredStatement> out)
-
traceLocalVariableScope
public void traceLocalVariableScope(LValueScopeDiscoverer scopeDiscoverer)
-
match
public boolean match(MatchIterator<StructuredStatement> matchIterator, MatchResultCollector matchResultCollector)
- Specified by:
matchin interfaceMatcher<StructuredStatement>- Overrides:
matchin classAbstractStructuredStatement
-
rewriteExpressions
public void rewriteExpressions(ExpressionRewriter expressionRewriter)
-
-