Interface NewClassTree
- All Superinterfaces:
ExpressionTree,Tree
- All Known Implementing Classes:
NewClassTreeImpl
Class instance creation expression.
JLS 15.9
newidentifier()( ) newidentifier()(arguments()) newtypeArguments()identifier()(arguments())classBody()enclosingExpression(). newidentifier()(arguments())
- Since:
- Java 1.3
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.dotToken()"dot" is not null only when the enclosing expression is present"new" keyword is null for#initializer()Methods inherited from interface org.sonar.plugins.java.api.tree.ExpressionTree
asConstant, asConstant, symbolType
-
Method Details
-
enclosingExpression
-
dotToken
"dot" is not null only when the enclosing expression is present -
newKeyword
"new" keyword is null for#initializer() -
typeArguments
- Since:
- Java 1.5
-
identifier
TypeTree identifier() -
arguments
Arguments arguments() -
classBody
-
constructorSymbol
Deprecated, for removal: This API element is subject to removal in a future version. -
methodSymbol
Symbol.MethodSymbol methodSymbol()
-
methodSymbol(), which returns the narrower typeSymbol.MethodSymbolinstead ofSymbol.