public class NewClassTreeImpl extends AbstractTypedTree implements NewClassTree
JavaTree.ArrayTypeTreeImpl, JavaTree.CompilationUnitTreeImpl, JavaTree.ImportTreeImpl, JavaTree.NotImplementedTreeImpl, JavaTree.ParameterizedTypeTreeImpl, JavaTree.PrimitiveTypeTreeImpl, JavaTree.UnionTypeTreeImpl, JavaTree.WildcardTreeImpl| Constructor and Description |
|---|
NewClassTreeImpl(List arguments,
ClassTreeImpl classBody,
com.sonar.sslr.api.AstNode... children) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(TreeVisitor visitor) |
List<ExpressionTree> |
arguments() |
Iterator<Tree> |
childrenIterator()
Creates iterator for children of this node.
|
ClassTree |
classBody() |
NewClassTreeImpl |
completeWithEnclosingExpression(ExpressionTree enclosingExpression) |
NewClassTreeImpl |
completeWithIdentifier(ExpressionTree identifier) |
ExpressionTree |
enclosingExpression() |
IdentifierTree |
getConstructorIdentifier() |
Tree.Kind |
getKind() |
Tree |
identifier() |
List<Tree> |
typeArguments() |
getSymbolType, setTypeaddChild, getAstNode, getLine, is, isLeaf, isLegacy, prependChildren, prependChildrenfindChildren, findDirectChildren, findFirstChild, findFirstDirectChild, findFirstParent, getChild, getChildren, getChildren, getDescendants, getFirstAncestor, getFirstAncestor, getFirstChild, getFirstChild, getFirstDescendant, getFromIndex, getLastChild, getLastChild, getLastToken, getName, getNextAstNode, getNextSibling, getNumberOfChildren, getParent, getPreviousAstNode, getPreviousSibling, getToIndex, getToken, getTokenLine, getTokenOriginalValue, getTokens, getTokenValue, getType, hasAncestor, hasAncestor, hasChildren, hasChildren, hasDescendant, hasDirectChildren, hasParent, hasParents, hasToBeSkippedFromAst, hasToken, is, isCopyBookOrGeneratedNode, isNot, nextAstNode, nextSibling, previousAstNode, previousSibling, select, setFromIndex, setToIndex, toStringpublic NewClassTreeImpl(List arguments, @Nullable ClassTreeImpl classBody, com.sonar.sslr.api.AstNode... children)
public NewClassTreeImpl completeWithIdentifier(ExpressionTree identifier)
public NewClassTreeImpl completeWithEnclosingExpression(ExpressionTree enclosingExpression)
@Nullable public ExpressionTree enclosingExpression()
enclosingExpression in interface NewClassTreepublic List<Tree> typeArguments()
typeArguments in interface NewClassTreepublic Tree identifier()
identifier in interface NewClassTreepublic List<ExpressionTree> arguments()
arguments in interface NewClassTree@Nullable public ClassTree classBody()
classBody in interface NewClassTreepublic void accept(TreeVisitor visitor)
public Iterator<Tree> childrenIterator()
JavaTreenull elements.childrenIterator in class JavaTreepublic IdentifierTree getConstructorIdentifier()
Copyright © 2012–2015 SonarSource. All rights reserved.