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) |
of
cantConvert, cantReplace, cantReplace, doesNotContain, getASTNode, getDocumentation, getLocalReferenceTable, getParentNode, getPositionInSourceCode, hasASTNode, makeParentOf, replaceInParentBy, setASTNode, setParentNode
public 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 GoloElement
public void accept(GoloIrVisitor visitor)
accept
in class GoloElement
public void walk(GoloIrVisitor visitor)
walk
in class GoloElement
protected void replaceElement(GoloElement original, GoloElement newElement)
replaceElement
in class GoloElement