Class SpecifierTreeImpl
- java.lang.Object
-
- org.sonar.javascript.tree.impl.JavaScriptTree
-
- org.sonar.javascript.tree.impl.declaration.SpecifierTreeImpl
-
- All Implemented Interfaces:
SpecifierTree,Tree
public class SpecifierTreeImpl extends JavaScriptTree implements SpecifierTree
-
-
Constructor Summary
Constructors Constructor Description SpecifierTreeImpl(Tree.Kind kind, SyntaxToken flowImportTypeOfTypeOfToken, IdentifierTree leftName)SpecifierTreeImpl(Tree.Kind kind, SyntaxToken flowImportTypeOfTypeOfToken, IdentifierTree leftName, SyntaxToken asToken, IdentifierTree rightName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(DoubleDispatchVisitor visitor)SyntaxTokenasToken()Iterator<Tree>childrenIterator()Creates iterator for children of this node.SyntaxTokenflowImportTypeOrTypeOfToken()Tree.KindgetKind()IdentifierTreeleftName()IdentifierTreerightName()-
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
-
SpecifierTreeImpl
public SpecifierTreeImpl(Tree.Kind kind, @Nullable SyntaxToken flowImportTypeOfTypeOfToken, IdentifierTree leftName, SyntaxToken asToken, IdentifierTree rightName)
-
SpecifierTreeImpl
public SpecifierTreeImpl(Tree.Kind kind, @Nullable SyntaxToken flowImportTypeOfTypeOfToken, IdentifierTree leftName)
-
-
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
-
accept
public void accept(DoubleDispatchVisitor visitor)
-
flowImportTypeOrTypeOfToken
@Nullable public SyntaxToken flowImportTypeOrTypeOfToken()
- Specified by:
flowImportTypeOrTypeOfTokenin interfaceSpecifierTree
-
leftName
public IdentifierTree leftName()
- Specified by:
leftNamein interfaceSpecifierTree
-
asToken
@Nullable public SyntaxToken asToken()
- Specified by:
asTokenin interfaceSpecifierTree
-
rightName
@Nullable public IdentifierTree rightName()
- Specified by:
rightNamein interfaceSpecifierTree
-
-