Package net.hydromatic.morel.ast
Class Ast.Exp
- java.lang.Object
-
- net.hydromatic.morel.ast.AstNode
-
- net.hydromatic.morel.ast.Ast.Exp
-
- Direct Known Subclasses:
Ast.AnnotatedExp,Ast.Apply,Ast.Case,Ast.Fn,Ast.From,Ast.Id,Ast.If,Ast.InfixCall,Ast.LetExp,Ast.List,Ast.Literal,Ast.PrefixCall,Ast.Record,Ast.RecordSelector,Ast.Tuple
- Enclosing class:
- Ast
public abstract static class Ast.Exp extends AstNode
Base class of expression ASTs.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Ast.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.java.util.List<Ast.Exp>args()Returns a list of all arguments.voidforEachArg(java.util.function.ObjIntConsumer<Ast.Exp> action)
-
-
-
Method Detail
-
forEachArg
public void forEachArg(java.util.function.ObjIntConsumer<Ast.Exp> action)
-
accept
public abstract Ast.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.
-
args
public final java.util.List<Ast.Exp> args()
Returns a list of all arguments.
-
-