Package org.sonar.java.model.expression
Class IdentifierTreeImpl
- java.lang.Object
-
- org.sonar.java.model.JavaTree
-
- org.sonar.java.model.AbstractTypedTree
-
- org.sonar.java.model.expression.IdentifierTreeImpl
-
- All Implemented Interfaces:
JavaTree.AnnotatedTypeTree
,ExpressionTree
,IdentifierTree
,Tree
,TypeTree
public class IdentifierTreeImpl extends AbstractTypedTree implements IdentifierTree, JavaTree.AnnotatedTypeTree
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.sonar.java.model.JavaTree
JavaTree.AnnotatedTypeTree, JavaTree.ArrayTypeTreeImpl, JavaTree.CompilationUnitTreeImpl, JavaTree.ImportTreeImpl, JavaTree.NotImplementedTreeImpl, JavaTree.PackageDeclarationTreeImpl, JavaTree.ParameterizedTypeTreeImpl, JavaTree.PrimitiveTypeTreeImpl, JavaTree.UnionTypeTreeImpl, JavaTree.WildcardTreeImpl
-
-
Field Summary
-
Fields inherited from class org.sonar.java.model.JavaTree
grammarRuleKey
-
-
Constructor Summary
Constructors Constructor Description IdentifierTreeImpl(InternalSyntaxToken nameToken)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(TreeVisitor visitor)
List<AnnotationTree>
annotations()
Iterable<Tree>
children()
Creates iterable for children of this node.void
complete(List<AnnotationTree> annotations)
SyntaxToken
identifierToken()
Tree.Kind
kind()
String
name()
void
setSymbol(Symbol symbol)
Symbol
symbol()
String
toString()
-
Methods inherited from class org.sonar.java.model.AbstractTypedTree
completeMissingType, isTypeSet, setInferedType, setType, symbolType
-
Methods inherited from class org.sonar.java.model.JavaTree
firstToken, getChildren, getGrammarRuleKey, getLine, is, isLeaf, lastToken, parent, setParent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.sonar.plugins.java.api.tree.ExpressionTree
symbolType
-
Methods inherited from interface org.sonar.plugins.java.api.tree.Tree
firstToken, is, lastToken, parent
-
Methods inherited from interface org.sonar.plugins.java.api.tree.TypeTree
symbolType
-
-
-
-
Constructor Detail
-
IdentifierTreeImpl
public IdentifierTreeImpl(InternalSyntaxToken nameToken)
-
-
Method Detail
-
complete
public void complete(List<AnnotationTree> annotations)
- Specified by:
complete
in interfaceJavaTree.AnnotatedTypeTree
-
identifierToken
public SyntaxToken identifierToken()
- Specified by:
identifierToken
in interfaceIdentifierTree
-
name
public String name()
- Specified by:
name
in interfaceIdentifierTree
-
setSymbol
public void setSymbol(Symbol symbol)
-
symbol
public Symbol symbol()
- Specified by:
symbol
in interfaceIdentifierTree
-
accept
public void accept(TreeVisitor visitor)
-
children
public Iterable<Tree> children()
Description copied from class:JavaTree
Creates iterable for children of this node. Note that iterable may containnull
elements.
-
annotations
public List<AnnotationTree> annotations()
- Specified by:
annotations
in interfaceTypeTree
-
-