Interface NodeWithSimpleName<N extends Node>
-
- All Known Subinterfaces:
NodeWithMembers<N>
- All Known Implementing Classes:
AnnotationDeclaration,AnnotationMemberDeclaration,CallableDeclaration,ClassOrInterfaceDeclaration,ClassOrInterfaceType,CompactConstructorDeclaration,ConstructorDeclaration,EnumConstantDeclaration,EnumDeclaration,FieldAccessExpr,MemberValuePair,MethodCallExpr,MethodDeclaration,NameExpr,Parameter,RecordDeclaration,TypeDeclaration,TypeParameter,TypePatternExpr,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 SimpleNamegetName()default NameExprgetNameAsExpression()default StringgetNameAsString()NsetName(SimpleName name)default NsetName(String name)
-
-
-
Method Detail
-
getName
SimpleName getName()
-
setName
N setName(SimpleName name)
-
getNameAsString
default String getNameAsString()
-
getNameAsExpression
default NameExpr getNameAsExpression()
-
-