Class UnaryOpAST

java.lang.Object
xyz.cofe.cxel.ast.ASTBase<SELF>
xyz.cofe.cxel.ast.OpAST<UnaryOpAST>
xyz.cofe.cxel.ast.UnaryOpAST
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 UnaryOpAST
extends OpAST<UnaryOpAST>
Унарный оператор
  • 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 AST operand
    Операнд

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

    operator

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

    begin, end
  • Constructor Summary

    Constructors 
    Modifier Constructor Description
    protected UnaryOpAST​(UnaryOpAST sample)
    Конструктор копирования
      UnaryOpAST​(xyz.cofe.text.tparse.TPointer begin, xyz.cofe.text.tparse.TPointer end, KeywordAST op, AST operand)
    Конструктор
  • Method Summary

    Modifier and Type Method Description
    AST[] children()
    Возвращает дочерние узлы
    UnaryOpAST clone()
    Клонирование
    AST operand()
    Возвращает операнд
    UnaryOpAST operand​(AST o)
    Указывает операнд

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

    operator, operator, opKeyword, opText

    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

    • UnaryOpAST

      public UnaryOpAST​(xyz.cofe.text.tparse.TPointer begin, xyz.cofe.text.tparse.TPointer end, KeywordAST op, AST operand)
      Конструктор
      Parameters:
      begin - начало оператора
      end - конец оператора
      op - оператор
      operand - операнд
    • UnaryOpAST

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

    • clone

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

      public AST operand()
      Возвращает операнд
      Returns:
      операнд
    • operand

      public UnaryOpAST operand​(AST o)
      Указывает операнд
      Parameters:
      o - операнд
      Returns:
      клон с новым операндом
    • children

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