public final class ChoiceCase extends AstNodeBase
| Constructor and Description |
|---|
ChoiceCase(AstLocation location,
java.util.List<ChoiceCaseExpression> caseExpressions,
Field caseField)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ZserioAstVisitor visitor)
Accept zserio visitor.
|
java.util.List<ChoiceCaseExpression> |
getExpressions()
Gets expressions defined by the choice case.
|
Field |
getField()
Gets field defined by the choice case.
|
void |
visitChildren(ZserioAstVisitor visitor)
Visit children of the current AST node using given visitor.
|
getLocationpublic ChoiceCase(AstLocation location, java.util.List<ChoiceCaseExpression> caseExpressions, Field caseField)
location - AST node location.caseExpressions - List of all case expressions associated to this choice case.caseField - Case field associated to this choice case or null if it's not defined.public void accept(ZserioAstVisitor visitor)
AstNodevisitor - Visitor to accept.public void visitChildren(ZserioAstVisitor visitor)
AstNodevisitChildren in interface AstNodevisitChildren in class AstNodeBasevisitor - Visitor to use.public java.util.List<ChoiceCaseExpression> getExpressions()
public Field getField()
Last updated 2024-10-29 12:56:13