public class LocalClassDeclarationStmt extends Statement
class X { void m() { class Y { } } }ClassOrInterfaceDeclarationNode.BreadthFirstIterator, Node.DirectChildrenIterator, Node.ObserverRegistrationMode, Node.ParentsVisitor, Node.Parsedness, Node.PostOrderIterator, Node.PreOrderIterator, Node.TreeTraversalABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, NODE_BY_BEGIN_POSITION, prettyPrinterNoCommentsConfiguration, SYMBOL_RESOLVER_KEY| Constructor and Description |
|---|
LocalClassDeclarationStmt() |
LocalClassDeclarationStmt(ClassOrInterfaceDeclaration classDeclaration) |
LocalClassDeclarationStmt(TokenRange tokenRange,
ClassOrInterfaceDeclaration classDeclaration)
This constructor is used by the parser and is considered private.
|
| Modifier and Type | Method and Description |
|---|---|
<R,A> R |
accept(GenericVisitor<R,A> v,
A arg)
Accept method for visitor support.
|
<A> void |
accept(VoidVisitor<A> v,
A arg)
Accept method for visitor support.
|
LocalClassDeclarationStmt |
asLocalClassDeclarationStmt() |
LocalClassDeclarationStmt |
clone() |
ClassOrInterfaceDeclaration |
getClassDeclaration() |
LocalClassDeclarationStmtMetaModel |
getMetaModel() |
void |
ifLocalClassDeclarationStmt(Consumer<LocalClassDeclarationStmt> action) |
boolean |
isLocalClassDeclarationStmt() |
boolean |
remove(Node node) |
boolean |
replace(Node node,
Node replacementNode) |
LocalClassDeclarationStmt |
setClassDeclaration(ClassOrInterfaceDeclaration classDeclaration) |
Optional<LocalClassDeclarationStmt> |
toLocalClassDeclarationStmt() |
asAssertStmt, asBlockStmt, asBreakStmt, asContinueStmt, asDoStmt, asEmptyStmt, asExplicitConstructorInvocationStmt, asExpressionStmt, asForEachStmt, asForStmt, asIfStmt, asLabeledStmt, asReturnStmt, asSwitchStmt, asSynchronizedStmt, asThrowStmt, asTryStmt, asUnparsableStmt, asWhileStmt, ifAssertStmt, ifBlockStmt, ifBreakStmt, ifContinueStmt, ifDoStmt, ifEmptyStmt, ifExplicitConstructorInvocationStmt, ifExpressionStmt, ifForEachStmt, ifForStmt, ifIfStmt, ifLabeledStmt, ifReturnStmt, ifSwitchStmt, ifSynchronizedStmt, ifThrowStmt, ifTryStmt, ifUnparsableStmt, ifWhileStmt, isAssertStmt, isBlockStmt, isBreakStmt, isContinueStmt, isDoStmt, isEmptyStmt, isExplicitConstructorInvocationStmt, isExpressionStmt, isForEachStmt, isForStmt, isIfStmt, isLabeledStmt, isReturnStmt, isSwitchStmt, isSynchronizedStmt, isThrowStmt, isTryStmt, isUnparsableStmt, isWhileStmt, toAssertStmt, toBlockStmt, toBreakStmt, toContinueStmt, toDoStmt, toEmptyStmt, toExplicitConstructorInvocationStmt, toExpressionStmt, toForEachStmt, toForStmt, toIfStmt, toLabeledStmt, toReturnStmt, toSwitchStmt, toSynchronizedStmt, toThrowStmt, toTryStmt, toUnparsableStmt, toWhileStmtaddOrphanComment, containsData, customInitialization, equals, findAll, findAll, findCompilationUnit, findFirst, findFirst, findFirst, findRootNode, getAllContainedComments, getChildNodes, getChildNodesByType, getComment, getData, getDataKeys, getNodesByType, getOrphanComments, getParentNode, getParentNodeForChildren, getParsed, getRange, getSymbolResolver, getTokenRange, getToStringPrettyPrinterConfiguration, hashCode, isRegistered, notifyPropertyChange, register, register, registerForSubtree, remove, removeComment, removeData, removeForced, removeOrphanComment, replace, setAsParentNodeOf, setAsParentNodeOf, setBlockComment, setComment, setData, setLineComment, setParentNode, setParsed, setRange, setTokenRange, setToStringPrettyPrinterConfiguration, stream, stream, toString, toString, tryAddImportToParentCompilationUnit, unregister, walk, walk, walkfinalize, getClass, notify, notifyAll, wait, wait, waitfindAncestor, findAncestorcontainsWithin, getBegin, getEndpublic LocalClassDeclarationStmt()
public LocalClassDeclarationStmt(ClassOrInterfaceDeclaration classDeclaration)
public LocalClassDeclarationStmt(TokenRange tokenRange, ClassOrInterfaceDeclaration classDeclaration)
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
VisitableR - the type of the return value of the visitorA - the type the user argument passed to the visitorv - the visitor implementationarg - the argument passed to the visitor (of type A)public <A> void accept(VoidVisitor<A> v, A arg)
VisitableA - the type the argument passed for the visitorv - the visitor implementationarg - any value relevant for the visitor (of type A)public ClassOrInterfaceDeclaration getClassDeclaration()
public LocalClassDeclarationStmt setClassDeclaration(ClassOrInterfaceDeclaration classDeclaration)
public LocalClassDeclarationStmt clone()
public LocalClassDeclarationStmtMetaModel getMetaModel()
getMetaModel in class Statementpublic boolean isLocalClassDeclarationStmt()
isLocalClassDeclarationStmt in class Statementpublic LocalClassDeclarationStmt asLocalClassDeclarationStmt()
asLocalClassDeclarationStmt in class Statementpublic void ifLocalClassDeclarationStmt(Consumer<LocalClassDeclarationStmt> action)
ifLocalClassDeclarationStmt in class Statementpublic Optional<LocalClassDeclarationStmt> toLocalClassDeclarationStmt()
toLocalClassDeclarationStmt in class StatementCopyright © 2007–2019. All rights reserved.