Class MethodDeclarationTreeImpl
- java.lang.Object
-
- org.sonar.javascript.tree.impl.JavaScriptTree
-
- org.sonar.javascript.tree.impl.declaration.FunctionTreeImpl
-
- org.sonar.javascript.tree.impl.declaration.MethodDeclarationTreeImpl
-
- All Implemented Interfaces:
FunctionTree,MethodDeclarationTree,Tree
public class MethodDeclarationTreeImpl extends FunctionTreeImpl implements MethodDeclarationTree
-
-
Method Summary
-
Methods inherited from class org.sonar.javascript.tree.impl.declaration.FunctionTreeImpl
outerScopeSymbolUsages, scope, scope
-
Methods inherited from class org.sonar.javascript.tree.impl.JavaScriptTree
childrenStream, descendants, firstToken, is, isAncestorOf, isLeaf, lastToken, parent, setParent, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.sonar.plugins.javascript.api.tree.declaration.FunctionTree
scope
-
Methods inherited from interface org.sonar.plugins.javascript.api.tree.Tree
childrenStream, descendants, firstToken, is, isAncestorOf, lastToken, parent
-
-
-
-
Method Detail
-
generator
public static MethodDeclarationTreeImpl generator(List<DecoratorTree> decorators, @Nullable InternalSyntaxToken staticToken, InternalSyntaxToken starToken, Tree name, @Nullable FlowGenericParameterClauseTree genericParameterClause, ParameterListTree parameters, @Nullable FlowTypeAnnotationTree returnType, BlockTree body)
-
method
public static MethodDeclarationTreeImpl method(List<DecoratorTree> decorators, @Nullable InternalSyntaxToken staticToken, @Nullable InternalSyntaxToken asyncToken, Tree name, @Nullable FlowGenericParameterClauseTree genericParameterClause, ParameterListTree parameters, @Nullable FlowTypeAnnotationTree returnType, BlockTree body)
-
decorators
public List<DecoratorTree> decorators()
- Specified by:
decoratorsin interfaceMethodDeclarationTree
-
staticToken
@Nullable public SyntaxToken staticToken()
- Specified by:
staticTokenin interfaceMethodDeclarationTree
-
starToken
@Nullable public SyntaxToken starToken()
- Specified by:
starTokenin interfaceMethodDeclarationTree
-
name
public Tree name()
- Specified by:
namein interfaceFunctionTree- Specified by:
namein interfaceMethodDeclarationTree
-
genericParameterClause
@Nullable public FlowGenericParameterClauseTree genericParameterClause()
- Specified by:
genericParameterClausein interfaceFunctionTree
-
asyncToken
@Nullable public SyntaxToken asyncToken()
- Specified by:
asyncTokenin interfaceFunctionTree
-
parameterClause
public ParameterListTree parameterClause()
- Specified by:
parameterClausein interfaceFunctionTree- Specified by:
parameterClausein interfaceMethodDeclarationTree
-
returnType
@Nullable public FlowTypeAnnotationTree returnType()
- Specified by:
returnTypein interfaceFunctionTree- Specified by:
returnTypein interfaceMethodDeclarationTree
-
body
public BlockTree body()
- Specified by:
bodyin interfaceFunctionTree- Specified by:
bodyin interfaceMethodDeclarationTree
-
getKind
public Tree.Kind getKind()
- Specified by:
getKindin classJavaScriptTree
-
childrenIterator
public Iterator<Tree> childrenIterator()
Description copied from class:JavaScriptTreeCreates iterator for children of this node. Note that iterator may containnullelements.- Specified by:
childrenIteratorin classJavaScriptTree
-
accept
public void accept(DoubleDispatchVisitor visitor)
-
parameterList
public List<BindingElementTree> parameterList()
- Specified by:
parameterListin interfaceFunctionTree
-
-