Class StringAST

java.lang.Object
xyz.cofe.cxel.ast.ASTBase<StringAST>
xyz.cofe.cxel.ast.StringAST
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 StringAST
extends ASTBase<StringAST>
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 StringTok stringTok  

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

    begin, end
  • Constructor Summary

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

    Modifier and Type Method Description
    AST[] children()
    Возвращает дочерние узлы
    StringAST clone()
    Клонирование
    StringTok stringTok()
    Возвращает лексему
    java.lang.String 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, toString, 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

    • StringAST

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

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

      public StringAST​(xyz.cofe.text.tparse.TPointer ptr, StringTok tok)
      Конструктор
      Parameters:
      ptr - Указатель
      tok - Лексема
  • Method Details

    • clone

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

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

      public StringTok stringTok()
      Возвращает лексему
      Returns:
      лексема
    • value

      public java.lang.String value()
      Возвращает декодированное значение
      Specified by:
      value in interface LiteralAST
      Returns:
      значение