Package net.hydromatic.morel.ast
Class Core.Exp
- java.lang.Object
-
- net.hydromatic.morel.ast.AstNode
-
- net.hydromatic.morel.ast.Core.BaseNode
-
- net.hydromatic.morel.ast.Core.Exp
-
- Direct Known Subclasses:
Core.Apply,Core.Case,Core.Fn,Core.From,Core.Id,Core.Let,Core.Literal,Core.Local,Core.RecordSelector,Core.Tuple
- Enclosing class:
- Core
public abstract static class Core.Exp extends Core.BaseNode
Base class of core expressions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Core.Expaccept(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.voidforEachArg(ObjIntConsumer<Core.Exp> action)Typetype()Returns the type.-
Methods inherited from class net.hydromatic.morel.ast.Core.BaseNode
accept
-
-
-
-
Field Detail
-
type
public final Type type
-
-
Method Detail
-
forEachArg
public void forEachArg(ObjIntConsumer<Core.Exp> action)
-
type
public Type type()
Returns the type.
-
accept
public abstract Core.Exp 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.- Overrides:
acceptin classCore.BaseNode
-
-