Package net.hydromatic.morel.ast
Class Core.Case
java.lang.Object
net.hydromatic.morel.ast.AstNode
net.hydromatic.morel.ast.Core.BaseNode
net.hydromatic.morel.ast.Core.Exp
net.hydromatic.morel.ast.Core.Case
- Enclosing class:
Core
Case expression.
Also implements Ast.If.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCase(Pos pos, Type type, Core.Exp exp, com.google.common.collect.ImmutableList<Core.Match> matchList) -
Method Summary
Modifier and TypeMethodDescriptionAccepts a shuttle, calling theShuttle.visit(net.hydromatic.morel.ast.Ast.Literal)method appropriate to the type of this node, and returning the result.voidAccepts a visitor, calling theShuttle.visit(net.hydromatic.morel.ast.Ast.Literal)method appropriate to the type of this node, and returning the result.copy(Core.Exp exp, List<Core.Match> matchList) (package private) AstWriterMethods inherited from class net.hydromatic.morel.ast.Core.Exp
arg, forEachArg, isCallTo, isConstant, type
-
Field Details
-
exp
-
matchList
-
-
Constructor Details
-
Case
Case(Pos pos, Type type, Core.Exp exp, com.google.common.collect.ImmutableList<Core.Match> matchList)
-
-
Method Details
-
unparse
-
accept
Description copied from class:AstNodeAccepts a shuttle, calling theShuttle.visit(net.hydromatic.morel.ast.Ast.Literal)method appropriate to the type of this node, and returning the result. -
accept
Description copied from class:AstNodeAccepts a visitor, calling theShuttle.visit(net.hydromatic.morel.ast.Ast.Literal)method appropriate to the type of this node, and returning the result.- Overrides:
acceptin classCore.BaseNode
-
copy
-