public abstract class Statement extends Node
Node.BreadthFirstIterator, Node.DirectChildrenIterator, Node.ObserverRegistrationMode, Node.ParentsVisitor, Node.Parsedness, Node.PostOrderIterator, Node.PreOrderIterator, Node.TreeTraversal
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, LINE_SEPARATOR_KEY, NODE_BY_BEGIN_POSITION, PHANTOM_KEY, prettyPrinterNoCommentsConfiguration, PRINTER_KEY, SYMBOL_RESOLVER_KEY
Constructor and Description |
---|
Statement() |
Statement(TokenRange tokenRange)
This constructor is used by the parser and is considered private.
|
addOrphanComment, containsData, createDefaultPrinter, createDefaultPrinter, customInitialization, equals, findAll, findAll, findAll, findByRange, findCompilationUnit, findData, findFirst, findFirst, findFirst, findRootNode, getAllContainedComments, getChildNodes, getChildNodesByType, getComment, getData, getDataKeys, getDefaultPrinterConfiguration, getLineEndingStyle, getLineEndingStyleOrDefault, getNodesByType, getOrphanComments, getParentNode, getParentNodeForChildren, getParsed, getPrinter, getPrinter, getRange, getSymbolResolver, getTokenRange, hashCode, hasScope, isAncestorOf, isPhantom, isRegistered, notifyPropertyChange, register, register, registerForSubtree, remove, remove, removeComment, removeData, removeForced, removeOrphanComment, replace, replace, setAsParentNodeOf, setAsParentNodeOf, setBlockComment, setComment, setData, setLineComment, setParentNode, setParsed, setRange, setTokenRange, stream, stream, toString, toString, tryAddImportToParentCompilationUnit, unregister, walk, walk, walk
finalize, getClass, notify, notifyAll, wait, wait, wait
findAncestor, findAncestor, findAncestor, hasParentNode, isDescendantOf
containsWithin, containsWithinRange, getBegin, getEnd, hasRange
public Statement()
public Statement(TokenRange tokenRange)
public StatementMetaModel getMetaModel()
getMetaModel
in class Node
public boolean isAssertStmt()
public AssertStmt asAssertStmt()
public boolean isBlockStmt()
public BlockStmt asBlockStmt()
public boolean isBreakStmt()
public BreakStmt asBreakStmt()
public boolean isContinueStmt()
public ContinueStmt asContinueStmt()
public boolean isDoStmt()
public DoStmt asDoStmt()
public boolean isEmptyStmt()
public EmptyStmt asEmptyStmt()
public boolean isExplicitConstructorInvocationStmt()
public ExplicitConstructorInvocationStmt asExplicitConstructorInvocationStmt()
public boolean isExpressionStmt()
public ExpressionStmt asExpressionStmt()
public boolean isForStmt()
public ForStmt asForStmt()
public boolean isIfStmt()
public IfStmt asIfStmt()
public boolean isLabeledStmt()
public LabeledStmt asLabeledStmt()
public boolean isLocalClassDeclarationStmt()
public boolean isLocalRecordDeclarationStmt()
public LocalClassDeclarationStmt asLocalClassDeclarationStmt()
public LocalRecordDeclarationStmt asLocalRecordDeclarationStmt()
public boolean isReturnStmt()
public ReturnStmt asReturnStmt()
public boolean isSwitchStmt()
public SwitchStmt asSwitchStmt()
public boolean isSynchronizedStmt()
public SynchronizedStmt asSynchronizedStmt()
public boolean isThrowStmt()
public ThrowStmt asThrowStmt()
public boolean isTryStmt()
public TryStmt asTryStmt()
public boolean isUnparsableStmt()
public UnparsableStmt asUnparsableStmt()
public boolean isWhileStmt()
public WhileStmt asWhileStmt()
public void ifAssertStmt(Consumer<AssertStmt> action)
public void ifContinueStmt(Consumer<ContinueStmt> action)
public void ifExplicitConstructorInvocationStmt(Consumer<ExplicitConstructorInvocationStmt> action)
public void ifExpressionStmt(Consumer<ExpressionStmt> action)
public void ifLabeledStmt(Consumer<LabeledStmt> action)
public void ifLocalClassDeclarationStmt(Consumer<LocalClassDeclarationStmt> action)
public void ifLocalRecordDeclarationStmt(Consumer<LocalRecordDeclarationStmt> action)
public void ifReturnStmt(Consumer<ReturnStmt> action)
public void ifSwitchStmt(Consumer<SwitchStmt> action)
public void ifSynchronizedStmt(Consumer<SynchronizedStmt> action)
public void ifUnparsableStmt(Consumer<UnparsableStmt> action)
public Optional<AssertStmt> toAssertStmt()
public Optional<ContinueStmt> toContinueStmt()
public Optional<ExplicitConstructorInvocationStmt> toExplicitConstructorInvocationStmt()
public Optional<ExpressionStmt> toExpressionStmt()
public Optional<LabeledStmt> toLabeledStmt()
public Optional<LocalClassDeclarationStmt> toLocalClassDeclarationStmt()
public Optional<LocalRecordDeclarationStmt> toLocalRecordDeclarationStmt()
public Optional<ReturnStmt> toReturnStmt()
public Optional<SwitchStmt> toSwitchStmt()
public Optional<SynchronizedStmt> toSynchronizedStmt()
public Optional<UnparsableStmt> toUnparsableStmt()
public boolean isForEachStmt()
public ForEachStmt asForEachStmt()
public Optional<ForEachStmt> toForEachStmt()
public void ifForEachStmt(Consumer<ForEachStmt> action)
public boolean isYieldStmt()
public YieldStmt asYieldStmt()
Copyright © 2007–2024. All rights reserved.