NameLogic

open class NameLogic(source)

NameLogic contains a set of static methods to implement the abstraction of a "Name" as defined in Chapter 6 of the JLS. This code could be moved to an interface or base class in a successive version of JavaParser.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun classifyReference(name: Node, typeSolver: TypeSolver): NameCategory
Link copied to clipboard
open fun classifyRole(name: Node): NameRole
What is the Role of the given name?
Link copied to clipboard
open fun isAName(node: Node): Boolean
Does the Node represent a Name?
Link copied to clipboard
open fun isQualifiedName(node: Node): Boolean
Is the given node a qualified name?
Link copied to clipboard
open fun isSimpleName(node: Node): Boolean
Is the given node a non-qualified name?
Link copied to clipboard
open fun nameAsString(name: Node): String
Return the string representation of the name
See JLS 6.5.1 Syntactic Classification of a Name According to Context.