public final class MatchExpression extends ExpressionStatement implements Alternatives<ExpressionStatement>
| Modifier and Type | Method and Description |
|---|---|
void |
accept(GoloIrVisitor visitor) |
java.util.List<WhenClause<ExpressionStatement>> |
getClauses() |
ExpressionStatement |
getOtherwise() |
MatchExpression |
ofAST(GoloASTNode node) |
MatchExpression |
otherwise(java.lang.Object action) |
protected void |
replaceElement(GoloElement original,
GoloElement newElement) |
MatchExpression |
then(java.lang.Object action) |
void |
walk(GoloIrVisitor visitor) |
MatchExpression |
when(java.lang.Object cond) |
ofcantConvert, cantReplace, cantReplace, doesNotContain, getASTNode, getDocumentation, getLocalReferenceTable, getParentNode, getPositionInSourceCode, hasASTNode, makeParentOf, replaceInParentBy, setASTNode, setParentNodepublic MatchExpression when(java.lang.Object cond)
when in interface Alternatives<ExpressionStatement>public MatchExpression then(java.lang.Object action)
then in interface Alternatives<ExpressionStatement>public MatchExpression otherwise(java.lang.Object action)
otherwise in interface Alternatives<ExpressionStatement>public java.util.List<WhenClause<ExpressionStatement>> getClauses()
getClauses in interface Alternatives<ExpressionStatement>public ExpressionStatement getOtherwise()
getOtherwise in interface Alternatives<ExpressionStatement>public MatchExpression ofAST(GoloASTNode node)
ofAST in class GoloElementpublic void accept(GoloIrVisitor visitor)
accept in class GoloElementpublic void walk(GoloIrVisitor visitor)
walk in class GoloElementprotected void replaceElement(GoloElement original, GoloElement newElement)
replaceElement in class GoloElement