Package examples.ast

Class ASTNode

java.lang.Object
examples.ast.ASTNode
Direct Known Subclasses:
Expression, Program, Statement, Type

public abstract class ASTNode extends Object
All nodes in the AST implement this ASTNode class.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) int
    Column where the node is located in the source code.
    (package private) int
    Line where the node is located in the source code.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ASTNode(int line, int column)
    Constructor of the ASTNode class.
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • line

      int line
      Line where the node is located in the source code.
    • column

      int column
      Column where the node is located in the source code.
  • Constructor Details

    • ASTNode

      public ASTNode(int line, int column)
      Constructor of the ASTNode class.
      Parameters:
      line - Line where the node is located in the source code.
      column - Column where the node is located in the source code.