Class Symbol

java.lang.Object
icyllis.arc3d.compiler.tree.Node
icyllis.arc3d.compiler.tree.Symbol
Direct Known Subclasses:
AnonymousField, FunctionDecl, Type, Variable

public abstract class Symbol extends Node
Represents a symbol table entry.
  • Constructor Details

    • Symbol

      protected Symbol(int position, String name)
  • Method Details

    • accept

      public final boolean accept(@Nonnull TreeVisitor visitor)
      Description copied from class: Node
      Visit this AST with a given visitor.
      Specified by:
      accept in class Node
      Returns:
      true to stop recursion and propagate true up the stack, false to continue
    • getKind

      @Nonnull public abstract Node.SymbolKind getKind()
      See Also:
    • getName

      @Nonnull public final String getName()
    • setName

      public final void setName(@Nonnull String name)
      Changes the symbol's name.
    • getType

      @Nonnull public abstract Type getType()