Class NameExpressionSyntax


public class NameExpressionSyntax extends ExpressionSyntax
The NameExpressionSyntax class represents a name expression in the syntax tree. It consists of an identifier token within its value.
Version:
1.0
Author:
Siyabend Urun
See Also:
  • Constructor Details

    • NameExpressionSyntax

      public NameExpressionSyntax(SyntaxToken identifierToken)
      Creates a new instance of the NameExpressionSyntax class with the specified identifier token
      Parameters:
      identifierToken - The identifier token.
  • Method Details

    • getIdentifierToken

      public SyntaxToken getIdentifierToken()
      Retrieves the identifier token.
      Returns:
      The identifier token.
    • getType

      public SyntaxType getType()
      Retrieves the type of the syntax node.
      Specified by:
      getType in class SyntaxNode
      Returns:
      The syntax type.
    • getChildren

      public Iterator<SyntaxNode> getChildren()
      Retrieves an iterator over the child nodes of the literal expression. In this case, the only child node is the literal token.
      Specified by:
      getChildren in class SyntaxNode
      Returns:
      An iterator over the child nodes of the literal expression.