Interface NodeWithSimpleName<N extends Node>
-
- All Known Subinterfaces:
NodeWithConstructors<N>
- All Known Implementing Classes:
AnnotationDeclaration
,AnnotationMemberDeclaration
,CallableDeclaration
,ClassOrInterfaceDeclaration
,ClassOrInterfaceType
,ConstructorDeclaration
,EnumConstantDeclaration
,EnumDeclaration
,FieldAccessExpr
,MemberValuePair
,MethodCallExpr
,MethodDeclaration
,NameExpr
,Parameter
,TypeDeclaration
,TypeParameter
,VariableDeclarator
public interface NodeWithSimpleName<N extends Node>
A node with a name.The main reason for this interface is to permit users to manipulate homogeneously all nodes with a getName method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description SimpleName
getName()
default NameExpr
getNameAsExpression()
default String
getNameAsString()
N
setName(SimpleName name)
default N
setName(String name)
-
-
-
Method Detail
-
getName
SimpleName getName()
-
setName
N setName(SimpleName name)
-
getNameAsString
default String getNameAsString()
-
getNameAsExpression
default NameExpr getNameAsExpression()
-
-