Class NullAST

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

public class NullAST
extends ASTBase<NullAST>
implements LiteralAST
Литерал - null
  • 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 KeywordTok token
    токен соответствующий числу

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

    begin, end
  • Constructor Summary

    Constructors 
    Modifier Constructor Description
    protected NullAST​(NullAST sample)
    Конструктор копирования
      NullAST​(xyz.cofe.text.tparse.TPointer begin, KeywordTok tok)
    Конструктор
  • Method Summary

    Modifier and Type Method Description
    AST[] children()
    Возвращает дочерние узлы
    NullAST clone()
    Клонирование
    KeywordTok token()
    Возвращает токен соответствующий числу
    NullAST token​(KeywordTok t)
    Указывает токен соответствующий числу
    java.lang.String toString()  
    java.lang.Object value()
    Возвращает null ссылку

    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, wait, wait, wait

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

    nodes

    Methods inherited from interface xyz.cofe.collection.ImTreeWalk

    walk

    Methods inherited from interface xyz.cofe.text.tparse.Tok

    begin, end
  • Field Details

    • token

      protected KeywordTok token
      токен соответствующий числу
  • Constructor Details

    • NullAST

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

      public NullAST​(xyz.cofe.text.tparse.TPointer begin, KeywordTok tok)
      Конструктор
      Parameters:
      begin - указатель на расположение
      tok - токен
  • Method Details

    • clone

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

      public KeywordTok token()
      Возвращает токен соответствующий числу
      Returns:
      токен
    • token

      public NullAST token​(KeywordTok t)
      Указывает токен соответствующий числу
      Parameters:
      t - токен
      Returns:
      клон с новым токеном
    • value

      public java.lang.Object value()
      Возвращает null ссылку
      Specified by:
      value in interface LiteralAST
      Returns:
      null ссылка
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • children

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