Class AssignmentExpressionSyntax


public class AssignmentExpressionSyntax extends ExpressionSyntax
The AssignmentExpressionSyntax class represents an assignment expression in the syntax tree. It consists of an identifier token, an equals token, and an expression syntax representing the assigned value.
Version:
1.0
Author:
Siyabend Urun
See Also:
  • Constructor Details

    • AssignmentExpressionSyntax

      public AssignmentExpressionSyntax(SyntaxToken identifierToken, SyntaxToken equalsToken, ExpressionSyntax expressionSyntax)
      Creates a new instance of the AssignmentExpressionSyntax class with the specified identifier token, equals token, and expression syntax.
      Parameters:
      identifierToken - The identifier token.
      equalsToken - The equals token.
      expressionSyntax - The expression syntax representing the assigned value.
  • Method Details

    • getExpressionSyntax

      public ExpressionSyntax getExpressionSyntax()
      Retrieves the expression syntax representing the assigned value.
      Returns:
      The expression syntax.
    • 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 syntax node.
      Specified by:
      getChildren in class SyntaxNode
      Returns:
      An iterator over the child nodes.
    • getIdentifierToken

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