Package net.hydromatic.morel.ast
Class Core.AsPat
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.NamedPat
net.hydromatic.morel.ast.Core.AsPat
- All Implemented Interfaces:
Comparable<Core.NamedPat>
- Enclosing class:
Core
Layered pattern.
-
Field Summary
FieldsFields inherited from class net.hydromatic.morel.ast.Core.NamedPat
i, name, ORDERING -
Constructor Summary
Constructors -
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.Creates a copy of thisAsPatwith given contents, orthisif the contents are the same.(package private) AstWriterMethods inherited from class net.hydromatic.morel.ast.Core.NamedPat
compare, compareTo
-
Field Details
-
pat
-
-
Constructor Details
-
AsPat
-
-
Method Details
-
unparse
-
withType
- Specified by:
withTypein classCore.NamedPat
-
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.- Specified by:
acceptin classCore.NamedPat
-
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
Creates a copy of thisAsPatwith given contents, orthisif the contents are the same.
-