Package net.hydromatic.morel.ast
Class Core.Con0Pat
- java.lang.Object
-
- net.hydromatic.morel.ast.AstNode
-
- net.hydromatic.morel.ast.Core.BaseNode
-
- net.hydromatic.morel.ast.Core.Pat
-
- net.hydromatic.morel.ast.Core.Con0Pat
-
- Enclosing class:
- Core
public static class Core.Con0Pat extends Core.Pat
Type constructor pattern with no argument.For example, in "fun nvl NIL = 0 | OPTION x = x", "NIL" is a zero-arg type constructor pattern.
- See Also:
Core.ConPat
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Core.Pataccept(Shuttle shuttle)Accepts a shuttle, calling theShuttle.visit(net.hydromatic.morel.ast.Ast.Literal)method appropriate to the type of this node, and returning the result.voidaccept(Visitor visitor)Accepts a visitor, calling theShuttle.visit(net.hydromatic.morel.ast.Ast.Literal)method appropriate to the type of this node, and returning the result.DataTypetype()Returns the type.(package private) AstWriterunparse(AstWriter w, int left, int right)
-
-
-
Field Detail
-
tyCon
public final String tyCon
-
-
Method Detail
-
accept
public Core.Pat accept(Shuttle shuttle)
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
public void accept(Visitor visitor)
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
-
-