Class VarRefAST

java.lang.Object
xyz.cofe.cxel.ast.ASTBase<VarRefAST>
xyz.cofe.cxel.ast.VarRefAST
All Implemented Interfaces:
xyz.cofe.collection.ImTree<AST>, xyz.cofe.collection.ImTreeWalk<AST>, AST, xyz.cofe.text.tparse.Tok<xyz.cofe.text.tparse.TPointer>

public class VarRefAST
extends ASTBase<VarRefAST>
Ссылка на переменную
  • Nested Class Summary

    Nested classes/interfaces inherited from interface xyz.cofe.collection.ImTreeWalk

    xyz.cofe.collection.ImTreeWalk.Walk<A extends xyz.cofe.collection.ImTree<? extends A>>
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected IdTok idTok
    Идентификатор переменной

    Fields inherited from class xyz.cofe.cxel.ast.ASTBase

    begin, end
  • Constructor Summary

    Constructors 
    Modifier Constructor Description
    protected VarRefAST()
    Конструктор по умолчанию
    protected VarRefAST​(VarRefAST sample)
    Конструктор копирования
      VarRefAST​(xyz.cofe.text.tparse.TPointer ptr, IdTok idTok)
    Конструктор конструктор
  • Method Summary

    Modifier and Type Method Description
    AST[] children()
    Возвращает дочерние узлы
    VarRefAST clone()
    Клонирование
    IdTok idTok()
    Возвращает идентификатор переменной (имя переменной)
    java.lang.String variable()
    Возвращает имя переменной на которую производиться ссылка

    Methods inherited from class xyz.cofe.cxel.ast.ASTBase

    begin, children, children, cloneAndConf, emptyChildren, end

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface xyz.cofe.cxel.ast.AST

    nodes

    Methods inherited from interface xyz.cofe.collection.ImTreeWalk

    walk
  • Field Details

    • idTok

      protected IdTok idTok
      Идентификатор переменной
  • Constructor Details

    • VarRefAST

      protected VarRefAST()
      Конструктор по умолчанию
    • VarRefAST

      protected VarRefAST​(VarRefAST sample)
      Конструктор копирования
      Parameters:
      sample - образец для копирования
    • VarRefAST

      public VarRefAST​(xyz.cofe.text.tparse.TPointer ptr, IdTok idTok)
      Конструктор конструктор
      Parameters:
      ptr - Указатель
      idTok - Имя переменной
  • Method Details

    • clone

      public VarRefAST clone()
      Клонирование
      Specified by:
      clone in class ASTBase<VarRefAST>
      Returns:
      клон
    • children

      public AST[] children()
      Description copied from interface: AST
      Возвращает дочерние узлы
      Returns:
      дочерние узлы
    • idTok

      public IdTok idTok()
      Возвращает идентификатор переменной (имя переменной)
      Returns:
      идентификатор переменной
    • variable

      public java.lang.String variable()
      Возвращает имя переменной на которую производиться ссылка
      Returns:
      имя переменной