Class KeywordAST

java.lang.Object
xyz.cofe.cxel.ast.ASTBase<KeywordAST>
xyz.cofe.cxel.ast.KeywordAST
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 KeywordAST
extends ASTBase<KeywordAST>
Ключевое слово, зрезервировано для описания AST узлов как сложение, вычитание, скобок и прочего, где операторы являются ключевыми словами
  • 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 KeywordAST()
    Конструктор по умолчанию
    protected KeywordAST​(KeywordAST sample)
    Конструктор копирования
      KeywordAST​(xyz.cofe.text.tparse.TPointer begin, KeywordTok tok)
    Конструктор
  • Method Summary

    Modifier and Type Method Description
    AST[] children()
    Возвращает дочерние узлы
    KeywordAST clone()
    Клонирование
    KeywordTok getKeywordTok()
    Вохвразает ключевое слово

    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

  • Constructor Details

    • KeywordAST

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

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

      public KeywordAST​(xyz.cofe.text.tparse.TPointer begin, KeywordTok tok)
      Конструктор
      Parameters:
      begin - указатель на ключевое слово
      tok - само ключевое слово
  • Method Details

    • getKeywordTok

      public KeywordTok getKeywordTok()
      Вохвразает ключевое слово
      Returns:
      ключевое слово
    • clone

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

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