public final class Rule extends DocumentableAstNode
| Constructor and Description |
|---|
Rule(AstLocation location,
Expression ruleIdExpression,
java.util.List<DocComment> docComments)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ZserioAstVisitor visitor)
Accept zserio visitor.
|
java.lang.String |
getRuleId()
Gets rule ID.
|
Expression |
getRuleIdExpression()
Gets rule ID expression.
|
void |
visitChildren(ZserioAstVisitor visitor)
Visit children of the current AST node using given visitor.
|
getDocCommentsgetLocationpublic Rule(AstLocation location, Expression ruleIdExpression, java.util.List<DocComment> docComments)
location - AST node location.ruleIdExpression - Constant string expression defining the rule ID.docComments - List of documentation comments belonging to this node.public void accept(ZserioAstVisitor visitor)
AstNodevisitor - Visitor to accept.public void visitChildren(ZserioAstVisitor visitor)
AstNodevisitChildren in interface AstNodevisitChildren in class DocumentableAstNodevisitor - Visitor to use.public java.lang.String getRuleId()
public Expression getRuleIdExpression()
Last updated 2024-10-29 12:56:13