public class MethodDeclarationTreeImpl extends JavaScriptTree implements GeneratorMethodDeclarationTree, AccessorMethodDeclarationTree
| Modifier and Type | Method and Description |
|---|---|
void |
accept(TreeVisitor visitor) |
InternalSyntaxToken |
accessorToken() |
BlockTreeImpl |
body() |
Iterator<Tree> |
childrenIterator()
Creates iterator for children of this node.
|
MethodDeclarationTreeImpl |
completeWithStaticToken(InternalSyntaxToken staticToken) |
Tree.Kind |
getKind() |
ExpressionTree |
name() |
String |
nameToString() |
static MethodDeclarationTreeImpl |
newAccessor(InternalSyntaxToken accessorToken,
ExpressionTree name,
ParameterListTreeImpl parameters,
BlockTreeImpl body) |
static MethodDeclarationTreeImpl |
newMethodOrGenerator(InternalSyntaxToken starToken,
ExpressionTree name,
ParameterListTreeImpl parameters,
BlockTreeImpl body) |
ParameterListTree |
parameters() |
SyntaxToken |
starToken() |
SyntaxToken |
staticToken() |
addChild, addChildren, getAstNode, getLine, is, isLeaf, isLegacy, prependChildren, prependChildrenfindChildren, findDirectChildren, findFirstChild, findFirstDirectChild, findFirstParent, getChild, getChildren, getChildren, getDescendants, getFirstAncestor, getFirstAncestor, getFirstChild, getFirstChild, getFirstDescendant, getFromIndex, getLastChild, getLastChild, getLastToken, getName, getNextAstNode, getNextSibling, getNumberOfChildren, getParent, getPreviousAstNode, getPreviousSibling, getToIndex, getToken, getTokenLine, getTokenOriginalValue, getTokens, getTokenValue, getType, hasAncestor, hasAncestor, hasChildren, hasChildren, hasDescendant, hasDirectChildren, hasParent, hasParents, hasToBeSkippedFromAst, hasToken, is, isCopyBookOrGeneratedNode, isNot, nextAstNode, nextSibling, previousAstNode, previousSibling, select, setFromIndex, setToIndex, toStringpublic static MethodDeclarationTreeImpl newMethodOrGenerator(@Nullable InternalSyntaxToken starToken, ExpressionTree name, ParameterListTreeImpl parameters, BlockTreeImpl body)
public static MethodDeclarationTreeImpl newAccessor(InternalSyntaxToken accessorToken, ExpressionTree name, ParameterListTreeImpl parameters, BlockTreeImpl body)
public MethodDeclarationTreeImpl completeWithStaticToken(InternalSyntaxToken staticToken)
@Nullable public SyntaxToken staticToken()
staticToken in interface MethodDeclarationTreepublic SyntaxToken starToken()
starToken in interface GeneratorMethodDeclarationTreepublic InternalSyntaxToken accessorToken()
accessorToken in interface AccessorMethodDeclarationTreepublic ExpressionTree name()
name in interface MethodDeclarationTreepublic String nameToString()
public ParameterListTree parameters()
parameters in interface MethodDeclarationTreepublic BlockTreeImpl body()
body in interface MethodDeclarationTreepublic Tree.Kind getKind()
getKind in class JavaScriptTreepublic Iterator<Tree> childrenIterator()
JavaScriptTreenull elements.childrenIterator in class JavaScriptTreepublic void accept(TreeVisitor visitor)
Copyright © 2011–2015 SonarSource and Eriks Nukis. All rights reserved.