public class NewClassTreeImpl extends AbstractTypedTree implements NewClassTree
JavaTree.ArrayTypeTreeImpl, JavaTree.CompilationUnitTreeImpl, JavaTree.ImportTreeImpl, JavaTree.NotImplementedTreeImpl, JavaTree.PackageDeclarationTreeImpl, JavaTree.ParameterizedTypeTreeImpl, JavaTree.PrimitiveTypeTreeImpl, JavaTree.UnionTypeTreeImpl, JavaTree.WildcardTreeImplgrammarRuleKey| 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, symbolTypefirstToken, getChildren, getGrammarRuleKey, getLine, is, isLeaf, lastToken, parent, setParentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsymbolTypefirstToken, is, lastToken, parentpublic 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 NewClassTreepublic TypeTree identifier()
identifier in interface NewClassTreepublic Arguments arguments()
arguments in interface NewClassTree@Nullable public ClassTree classBody()
classBody in interface NewClassTreepublic void accept(TreeVisitor visitor)
public Iterable<Tree> children()
JavaTreenull elements.public IdentifierTree getConstructorIdentifier()
@Nullable public SyntaxToken newKeyword()
NewClassTree#initializer()newKeyword in interface NewClassTreepublic void completeWithDotToken(InternalSyntaxToken dotToken)
@Nullable public SyntaxToken dotToken()
NewClassTreedotToken in interface NewClassTreepublic Symbol constructorSymbol()
constructorSymbol in interface NewClassTreeCopyright © 2012–2017 SonarSource. All rights reserved.