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 Argumentsarguments()ClassTreeclassBody()SymbolconstructorSymbol()SyntaxTokendotToken()"dot" is not null only when the enclosing expression is presentExpressionTreeenclosingExpression()TypeTreeidentifier()SyntaxTokennewKeyword()"new" keyword is null for#initializer()TypeArgumentstypeArguments()-
Methods inherited from interface org.sonar.plugins.java.api.tree.ExpressionTree
asConstant, asConstant, 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()
-
-