Class Statement
- java.lang.Object
-
- com.strobel.core.Freezable
-
- com.strobel.decompiler.languages.java.ast.AstNode
-
- com.strobel.decompiler.languages.java.ast.Statement
-
- All Implemented Interfaces:
UserDataStore,IFreezable,INode,java.lang.Cloneable
- Direct Known Subclasses:
AssertStatement,BlockStatement,BreakStatement,CommentStatement,ContinueStatement,DoWhileStatement,EmptyStatement,ExpressionStatement,ForEachStatement,ForStatement,GotoStatement,IfElseStatement,LabeledStatement,LabelStatement,LocalTypeDeclarationStatement,ReturnStatement,Statement.NullStatement,Statement.PatternPlaceholder,SwitchStatement,SynchronizedStatement,ThrowStatement,TryCatchStatement,VariableDeclarationStatement,WhileStatement
public abstract class Statement extends AstNode
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classStatement.NullStatementprivate static classStatement.PatternPlaceholder
-
Field Summary
Fields Modifier and Type Field Description private int_offsetthe offset of 'this' Expression, as computed for its bytecode by the Java compilerstatic StatementNULL-
Fields inherited from class com.strobel.decompiler.languages.java.ast.AstNode
AST_NODE_USED_FLAGS, flags, FROZEN_BIT, ROLE_INDEX_MASK, ROOT_ROLE
-
Fields inherited from interface com.strobel.decompiler.patterns.INode
CHILD_ITERATOR
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedStatement(int offset)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Statementclone()static StatementforPattern(Pattern pattern)StatementgetNextStatement()NodeTypegetNodeType()intgetOffset()Returns the bytecode offset for 'this' expression, as computed by the Java compiler.StatementgetPreviousStatement()Role<? extends Statement>getRole()booleanisEmbeddable()-
Methods inherited from class com.strobel.decompiler.languages.java.ast.AstNode
acceptVisitor, addChild, addChildUnsafe, contains, contains, copyUserDataFrom, debugToString, freezeCore, getAncestors, getAncestors, getAncestorsAndSelf, getChildByRole, getChildren, getChildrenByRole, getDescendants, getDescendantsAndSelf, getEndLocation, getFirstChild, getLastChild, getNextNode, getNextSibling, getNextSibling, getParent, getParent, getPreviousNode, getPreviousSibling, getPreviousSibling, getRegion, getStartLocation, getText, getText, getUserData, hasChildren, insertChildAfter, insertChildBefore, insertChildBeforeUnsafe, insertChildrenAfter, insertChildrenBefore, isAncestorOf, isAncestorOf, isDescendantOf, isInside, isInside, isLoop, isNull, isReference, isUnconditionalBranch, makeOptional, match, matches, matches, matchesCollection, matchString, putUserData, putUserDataIfAbsent, remove, replace, replaceWith, replaceWith, setChildByRole, setRole, setRoleUnsafe, toString, withName
-
Methods inherited from class com.strobel.core.Freezable
canFreeze, freeze, freezeIfUnfrozen, isFrozen, tryFreeze, verifyFrozen, verifyNotFrozen
-
-
-
-
Field Detail
-
_offset
private int _offset
the offset of 'this' Expression, as computed for its bytecode by the Java compiler
-
NULL
public static final Statement NULL
-
-
Method Detail
-
getNodeType
public NodeType getNodeType()
- Specified by:
getNodeTypein classAstNode
-
isEmbeddable
public boolean isEmbeddable()
-
getNextStatement
public final Statement getNextStatement()
-
getPreviousStatement
public final Statement getPreviousStatement()
-
getOffset
public int getOffset()
Returns the bytecode offset for 'this' expression, as computed by the Java compiler.
-
-