Class EnumConstantTreeImpl
java.lang.Object
org.sonar.java.model.JavaTree
org.sonar.java.model.declaration.VariableTreeImpl
org.sonar.java.model.declaration.EnumConstantTreeImpl
- All Implemented Interfaces:
EnumConstantTree, StatementTree, Tree, VariableTree
-
Nested Class Summary
Nested classes/interfaces inherited from class JavaTree
JavaTree.AnnotatedTypeTree, JavaTree.ArrayTypeTreeImpl, JavaTree.CompilationUnitTreeImpl, JavaTree.ImportTreeImpl, JavaTree.NotImplementedTreeImpl, JavaTree.PackageDeclarationTreeImpl, JavaTree.ParameterizedTypeTreeImpl, JavaTree.PrimitiveTypeTreeImpl, JavaTree.UnionTypeTreeImpl, JavaTree.WildcardTreeImplModifier and TypeClassDescriptionstatic interfaceThis interface is dedicated to mark TypeTrees which will requires completion of their annotations during parsing.static classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic class -
Field Summary
Fields inherited from class VariableTreeImpl
variableBinding -
Constructor Summary
ConstructorsConstructorDescriptionEnumConstantTreeImpl(ModifiersTree modifiers, IdentifierTree simpleName, NewClassTreeImpl initializer, InternalSyntaxToken separatorToken) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(TreeVisitor visitor) children()Creates iterable for children of this node.kind()Methods inherited from class VariableTreeImpl
completeModifiers, completeModifiersAndType, completeType, completeTypeAndInitializer, endToken, equalToken, getLine, modifiers, setEndToken, simpleName, symbol, typeModifier and TypeMethodDescriptioncompleteModifiers(ModifiersTreeImpl modifiers) completeModifiersAndType(ModifiersTreeImpl modifiers, TypeTree type) completeType(TypeTree type) completeTypeAndInitializer(TypeTree type, InternalSyntaxToken equalToken, ExpressionTree initializer) endToken()intgetLine()voidsetEndToken(InternalSyntaxToken endToken) symbol()type()Methods inherited from class JavaTree
allTokens, firstToken, getChildren, is, isLeaf, lastToken, parent, setParentMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface EnumConstantTree
modifiers, simpleName
-
Constructor Details
-
EnumConstantTreeImpl
public EnumConstantTreeImpl(ModifiersTree modifiers, IdentifierTree simpleName, NewClassTreeImpl initializer, @Nullable InternalSyntaxToken separatorToken)
-
-
Method Details
-
initializer
- Specified by:
initializerin interfaceEnumConstantTree- Specified by:
initializerin interfaceVariableTree- Overrides:
initializerin classVariableTreeImpl
-
kind
- Specified by:
kindin interfaceTree- Overrides:
kindin classVariableTreeImpl
-
accept
- Specified by:
acceptin interfaceTree- Overrides:
acceptin classVariableTreeImpl
-
children
Description copied from class:JavaTreeCreates iterable for children of this node. Note that iterable may containnullelements.- Overrides:
childrenin classVariableTreeImpl
-
separatorToken
- Specified by:
separatorTokenin interfaceEnumConstantTree
-