Class NewClassTreeImpl
java.lang.Object
org.sonar.java.model.JavaTree
org.sonar.java.model.AbstractTypedTree
org.sonar.java.model.expression.AssessableExpressionTree
org.sonar.java.model.expression.NewClassTreeImpl
- All Implemented Interfaces:
ExpressionTree, NewClassTree, Tree
-
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 AbstractTypedTree
typeBinding -
Constructor Summary
ConstructorsConstructorDescriptionNewClassTreeImpl(TypeTree identifier, Arguments arguments, ClassTreeImpl classBody) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(TreeVisitor visitor) children()Creates iterable for children of this node.voidcompleteWithDotToken(InternalSyntaxToken dotToken) completeWithEnclosingExpression(ExpressionTree enclosingExpression) completeWithNewKeyword(SyntaxToken newKeyword) completeWithTypeArguments(TypeArgumentListTreeImpl typeArguments) dotToken()"dot" is not null only when the enclosing expression is presentkind()"new" keyword is null for#initializer()Methods inherited from class AssessableExpressionTree
asConstant, asConstantMethods inherited from class AbstractTypedTree
symbolTypeMethods inherited from class JavaTree
allTokens, firstToken, getChildren, getLine, is, isLeaf, lastToken, parent, setParentMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ExpressionTree
symbolType
-
Constructor Details
-
NewClassTreeImpl
public NewClassTreeImpl(TypeTree identifier, Arguments arguments, @Nullable ClassTreeImpl classBody)
-
-
Method Details
-
completeWithEnclosingExpression
-
completeWithNewKeyword
-
completeWithTypeArguments
-
kind
-
enclosingExpression
- Specified by:
enclosingExpressionin interfaceNewClassTree
-
typeArguments
- Specified by:
typeArgumentsin interfaceNewClassTree
-
identifier
- Specified by:
identifierin interfaceNewClassTree
-
arguments
- Specified by:
argumentsin interfaceNewClassTree
-
classBody
- Specified by:
classBodyin interfaceNewClassTree
-
accept
-
children
-
getConstructorIdentifier
-
newKeyword
Description copied from interface:NewClassTree"new" keyword is null for#initializer()- Specified by:
newKeywordin interfaceNewClassTree
-
completeWithDotToken
-
dotToken
Description copied from interface:NewClassTree"dot" is not null only when the enclosing expression is present- Specified by:
dotTokenin interfaceNewClassTree
-
constructorSymbol
- Specified by:
constructorSymbolin interfaceNewClassTree
-
methodSymbol
- Specified by:
methodSymbolin interfaceNewClassTree
-