Class RootStatement
- java.lang.Object
-
- org.jetbrains.java.decompiler.modules.decompiler.stats.Statement
-
- org.jetbrains.java.decompiler.modules.decompiler.stats.RootStatement
-
- All Implemented Interfaces:
IMatchable
public final class RootStatement extends Statement
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jetbrains.java.decompiler.modules.decompiler.stats.Statement
Statement.EdgeDirection, Statement.LastBasicType, Statement.StatementType
-
Nested classes/interfaces inherited from interface org.jetbrains.java.decompiler.struct.match.IMatchable
IMatchable.MatchProperties
-
-
Field Summary
Fields Modifier and Type Field Description booleanaddErrorCommentjava.util.Set<java.lang.String>commentLinesStructMethodmt-
Fields inherited from class org.jetbrains.java.decompiler.modules.decompiler.stats.Statement
containsMonitorExit, continueSet, exprents, first, id, isLastAthrow, isMonitorEnter, labelEdges, lastBasicType, parent, post, STATEDGE_ALL, STATEDGE_DIRECT_ALL, stats, type, varDefinitions
-
-
Constructor Summary
Constructors Constructor Description RootStatement(Statement head, DummyExitStatement dummyExit, StructMethod mt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddComment(java.lang.String comment)voidaddComment(java.lang.String comment, boolean error)voidaddComments(ControlFlowGraph graph)voidaddComments(RootStatement root)voidbuildContentFlags()DummyExitStatementgetDummyExit()StartEndPairgetStartEndRange()booleanhasLoops()booleanhasSwitch()booleanhasTryCatch()TextBuffertoJava(int indent)-
Methods inherited from class org.jetbrains.java.decompiler.modules.decompiler.stats.Statement
addEdgeInternal, addLabeledEdge, addPredecessor, addSuccessor, buildContinueSet, buildMonitorFlags, changeEdgeNode, changeEdgeType, clearTempInformation, collapseNodesToStatement, containsMonitorExit, containsMonitorExitOrAthrow, containsStatement, containsStatementById, containsStatementStrict, containsStatementStrictById, findObject, getAllPredecessorEdges, getAllSuccessorEdges, getBasichead, getContinueSet, getExprents, getFirst, getFirstSuccessor, getImplicitlyDefinedVars, getLabelEdges, getLastBasicType, getNeighbours, getNeighboursSet, getOffset, getParent, getPost, getPostReversePostOrderList, getPostReversePostOrderList, getPredecessorEdges, getReversePostOrderList, getReversePostOrderList, getSequentialObjects, getSimpleCopy, getStats, getSuccessorEdges, getSuccessorEdgeView, getTopParent, getVarDefinitions, hasAnySuccessor, hasBasicSuccEdge, hasSuccessor, initExprents, initSimpleCopy, isCopied, isLabeled, isMonitorEnter, markMonitorexitDead, match, removeAllSuccessors, removeEdgeInternal, removePredecessor, removeSuccessor, replaceExprent, replaceStatement, replaceWith, replaceWithEmpty, setAllParent, setCopied, setExprents, setFirst, setParent, toJava, toString
-
-
-
-
Field Detail
-
mt
public final StructMethod mt
-
commentLines
public java.util.Set<java.lang.String> commentLines
-
addErrorComment
public boolean addErrorComment
-
-
Constructor Detail
-
RootStatement
public RootStatement(Statement head, DummyExitStatement dummyExit, StructMethod mt)
-
-
Method Detail
-
toJava
public TextBuffer toJava(int indent)
-
getDummyExit
public DummyExitStatement getDummyExit()
-
addComment
public void addComment(java.lang.String comment)
-
addComment
public void addComment(java.lang.String comment, boolean error)
-
addComments
public void addComments(RootStatement root)
-
addComments
public void addComments(ControlFlowGraph graph)
-
buildContentFlags
public void buildContentFlags()
-
hasTryCatch
public boolean hasTryCatch()
-
hasLoops
public boolean hasLoops()
-
hasSwitch
public boolean hasSwitch()
-
getStartEndRange
public StartEndPair getStartEndRange()
- Overrides:
getStartEndRangein classStatement
-
-