Class BooleanAST

java.lang.Object
xyz.cofe.cxel.ast.ASTBase<BooleanAST>
xyz.cofe.cxel.ast.BooleanAST
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 BooleanAST
extends ASTBase<BooleanAST>
implements LiteralAST
Литерал - булево
  • 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 keywordTok
    токен соответствующий числу

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

    begin, end
  • Constructor Summary

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

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

    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

  • Constructor Details

    • BooleanAST

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

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

    • clone

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

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

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

      public java.lang.Boolean value()
      Возвращает булево
      Specified by:
      value in interface LiteralAST
      Returns:
      булево
    • 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:
      дочерние узлы