Package xyz.cofe.cxel.ast
Class KeywordAST
java.lang.Object
- 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
-
Field Summary
Fields Modifier and Type Field Description protected KeywordTokkeywordTokключевое слово -
Constructor Summary
Constructors Modifier Constructor Description protectedKeywordAST()Конструктор по умолчаниюprotectedKeywordAST(KeywordAST sample)Конструктор копированияKeywordAST(xyz.cofe.text.tparse.TPointer begin, KeywordTok tok)Конструктор -
Method Summary
Modifier and Type Method Description AST[]children()Возвращает дочерние узлыKeywordASTclone()КлонированиеKeywordTokgetKeywordTok()Вохвразает ключевое словоMethods inherited from class xyz.cofe.cxel.ast.ASTBase
begin, children, children, cloneAndConf, emptyChildren, end
-
Field Details
-
keywordTok
ключевое слово
-
-
Constructor Details
-
KeywordAST
protected KeywordAST()Конструктор по умолчанию -
KeywordAST
Конструктор копирования- Parameters:
sample- образец для копирования
-
KeywordAST
Конструктор- Parameters:
begin- указатель на ключевое словоtok- само ключевое слово
-
-
Method Details
-
getKeywordTok
Вохвразает ключевое слово- Returns:
- ключевое слово
-
clone
Клонирование- Specified by:
clonein classASTBase<KeywordAST>- Returns:
- клон
-
children
Description copied from interface:ASTВозвращает дочерние узлы- Returns:
- дочерние узлы
-