public class NewClassTreeImpl extends AbstractTypedTree implements NewClassTree
JavaTree.ArrayTypeTreeImpl, JavaTree.CompilationUnitTreeImpl, JavaTree.ImportTreeImpl, JavaTree.NotImplementedTreeImpl, JavaTree.PackageDeclarationTreeImpl, JavaTree.ParameterizedTypeTreeImpl, JavaTree.PrimitiveTypeTreeImpl, JavaTree.UnionTypeTreeImpl, JavaTree.WildcardTreeImpl
grammarRuleKey
Constructor and Description |
---|
NewClassTreeImpl(Arguments arguments,
ClassTreeImpl classBody) |
Modifier and Type | Method and Description |
---|---|
void |
accept(TreeVisitor visitor) |
Arguments |
arguments() |
Iterable<Tree> |
children()
Creates iterable for children of this node.
|
ClassTree |
classBody() |
void |
completeWithDotToken(InternalSyntaxToken dotToken) |
NewClassTreeImpl |
completeWithEnclosingExpression(ExpressionTree enclosingExpression) |
NewClassTreeImpl |
completeWithIdentifier(TypeTree identifier) |
NewClassTreeImpl |
completeWithNewKeyword(SyntaxToken newKeyword) |
NewClassTreeImpl |
completeWithTypeArguments(TypeArgumentListTreeImpl typeArguments) |
Symbol |
constructorSymbol() |
SyntaxToken |
dotToken()
"dot" is not null only when the enclosing expression is present
|
ExpressionTree |
enclosingExpression() |
IdentifierTree |
getConstructorIdentifier() |
TypeTree |
identifier() |
Tree.Kind |
kind() |
SyntaxToken |
newKeyword()
"new" keyword is null for
#initializer() |
TypeArguments |
typeArguments() |
completeMissingType, isTypeSet, setInferedType, setType, symbolType
firstToken, getChildren, getGrammarRuleKey, getLine, is, isLeaf, lastToken, parent, setParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
symbolType
firstToken, is, lastToken, parent
public NewClassTreeImpl(Arguments arguments, @Nullable ClassTreeImpl classBody)
public NewClassTreeImpl completeWithIdentifier(TypeTree identifier)
public NewClassTreeImpl completeWithEnclosingExpression(ExpressionTree enclosingExpression)
public NewClassTreeImpl completeWithNewKeyword(SyntaxToken newKeyword)
public NewClassTreeImpl completeWithTypeArguments(TypeArgumentListTreeImpl typeArguments)
@Nullable public ExpressionTree enclosingExpression()
enclosingExpression
in interface NewClassTree
@Nullable public TypeArguments typeArguments()
typeArguments
in interface NewClassTree
public TypeTree identifier()
identifier
in interface NewClassTree
public Arguments arguments()
arguments
in interface NewClassTree
@Nullable public ClassTree classBody()
classBody
in interface NewClassTree
public void accept(TreeVisitor visitor)
public Iterable<Tree> children()
JavaTree
null
elements.public IdentifierTree getConstructorIdentifier()
@Nullable public SyntaxToken newKeyword()
NewClassTree
#initializer()
newKeyword
in interface NewClassTree
public void completeWithDotToken(InternalSyntaxToken dotToken)
@Nullable public SyntaxToken dotToken()
NewClassTree
dotToken
in interface NewClassTree
public Symbol constructorSymbol()
constructorSymbol
in interface NewClassTree
Copyright © 2012–2017 SonarSource. All rights reserved.