Class FieldDeclarationTreeImpl
- java.lang.Object
-
- org.sonar.javascript.tree.impl.JavaScriptTree
-
- org.sonar.javascript.tree.impl.declaration.FieldDeclarationTreeImpl
-
- All Implemented Interfaces:
FieldDeclarationTree,Tree
public class FieldDeclarationTreeImpl extends JavaScriptTree implements FieldDeclarationTree
-
-
Constructor Summary
Constructors Constructor Description FieldDeclarationTreeImpl(List<DecoratorTree> decorators, SyntaxToken staticToken, Tree propertyName, FlowTypeAnnotationTree typeAnnotation, SyntaxToken equalToken, ExpressionTree initializer, SyntaxToken semicolonToken)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(DoubleDispatchVisitor visitor)Iterator<Tree>childrenIterator()Creates iterator for children of this node.List<DecoratorTree>decorators()SyntaxTokenequalToken()Tree.KindgetKind()ExpressionTreeinitializer()TreepropertyName()SyntaxTokensemicolonToken()SyntaxTokenstaticToken()FlowTypeAnnotationTreetypeAnnotation()-
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.Tree
childrenStream, descendants, firstToken, is, isAncestorOf, lastToken, parent
-
-
-
-
Constructor Detail
-
FieldDeclarationTreeImpl
public FieldDeclarationTreeImpl(List<DecoratorTree> decorators, @Nullable SyntaxToken staticToken, Tree propertyName, @Nullable FlowTypeAnnotationTree typeAnnotation, @Nullable SyntaxToken equalToken, @Nullable ExpressionTree initializer, @Nullable SyntaxToken semicolonToken)
-
-
Method Detail
-
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
-
decorators
public List<DecoratorTree> decorators()
- Specified by:
decoratorsin interfaceFieldDeclarationTree
-
staticToken
@Nullable public SyntaxToken staticToken()
- Specified by:
staticTokenin interfaceFieldDeclarationTree
-
propertyName
public Tree propertyName()
- Specified by:
propertyNamein interfaceFieldDeclarationTree
-
typeAnnotation
@Nullable public FlowTypeAnnotationTree typeAnnotation()
- Specified by:
typeAnnotationin interfaceFieldDeclarationTree
-
equalToken
@Nullable public SyntaxToken equalToken()
- Specified by:
equalTokenin interfaceFieldDeclarationTree
-
initializer
@Nullable public ExpressionTree initializer()
- Specified by:
initializerin interfaceFieldDeclarationTree
-
semicolonToken
@Nullable public SyntaxToken semicolonToken()
- Specified by:
semicolonTokenin interfaceFieldDeclarationTree
-
accept
public void accept(DoubleDispatchVisitor visitor)
-
-