Package org.sonar.plugins.java.api.tree
Interface NewClassTree
-
- All Superinterfaces:
ExpressionTree
,Tree
- All Known Implementing Classes:
NewClassTreeImpl
@Beta public interface NewClassTree extends ExpressionTree
Class instance creation expression. JLS 15.9new
identifier()
( ) newidentifier()
(arguments()
) newtypeArguments()
identifier()
(arguments()
)classBody()
enclosingExpression()
. newidentifier()
(arguments()
)- Since:
- Java 1.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Arguments
arguments()
ClassTree
classBody()
Symbol
constructorSymbol()
SyntaxToken
dotToken()
"dot" is not null only when the enclosing expression is presentExpressionTree
enclosingExpression()
TypeTree
identifier()
SyntaxToken
newKeyword()
"new" keyword is null for#initializer()
TypeArguments
typeArguments()
-
Methods inherited from interface org.sonar.plugins.java.api.tree.ExpressionTree
symbolType
-
-
-
-
Method Detail
-
enclosingExpression
@Nullable ExpressionTree enclosingExpression()
-
dotToken
@Nullable SyntaxToken dotToken()
"dot" is not null only when the enclosing expression is present
-
newKeyword
@Nullable SyntaxToken newKeyword()
"new" keyword is null for#initializer()
-
typeArguments
@Nullable TypeArguments typeArguments()
- Since:
- Java 1.5
-
identifier
TypeTree identifier()
-
arguments
Arguments arguments()
-
constructorSymbol
Symbol constructorSymbol()
-
-