Class AST.FunctionDecl
java.lang.Object
nz.org.riskscape.defaults.classifier.AST
nz.org.riskscape.defaults.classifier.AST.FunctionDecl
- Enclosing class:
- AST
-
Nested Class Summary
Nested classes/interfaces inherited from class nz.org.riskscape.defaults.classifier.AST
AST.ExpressionDecl, AST.Filter, AST.FunctionDecl, AST.Metadata, AST.SimpleExpression, AST.SimpleType, AST.StructExpression, AST.StructType
-
Field Summary
Modifier and TypeFieldDescriptionfinal AST.StructType
final List<AST.Filter>
final Optional<AST.Metadata>
final Optional<AST.ExpressionDecl>
final Optional<AST.Metadata>
final Optional<AST.Metadata>
final Optional<AST.ExpressionDecl>
final Optional<AST.ExpressionDecl>
final Optional<nz.org.riskscape.defaults.classifier.AST.TypeDecl>
final nz.org.riskscape.dsl.Token
-
Constructor Summary
ConstructorDescriptionFunctionDecl
(nz.org.riskscape.dsl.Token start, Optional<AST.Metadata> id, Optional<AST.Metadata> description, Optional<AST.Metadata> category, AST.StructType argumentTypesDecl, Optional<nz.org.riskscape.defaults.classifier.AST.TypeDecl> returnTypeDecl, Optional<AST.ExpressionDecl> pre, List<AST.Filter> body, Optional<AST.ExpressionDecl> defaultExpr, Optional<AST.ExpressionDecl> post) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
nz.org.riskscape.dsl.Token
nz.org.riskscape.engine.types.Struct
int
hashCode()
List<nz.org.riskscape.problem.Problem>
parseExpressions
(nz.org.riskscape.rl.ExpressionParser parser) List<nz.org.riskscape.problem.Problem>
parseTypes
(nz.org.riskscape.engine.typexp.TypeBuilder builder) toString()
Methods inherited from class nz.org.riskscape.defaults.classifier.AST
getIdentifier
-
Field Details
-
start
public final nz.org.riskscape.dsl.Token start -
id
-
description
-
category
-
argumentTypesDecl
-
returnTypeDecl
-
pre
-
body
-
defaultExpr
-
post
-
-
Constructor Details
-
FunctionDecl
public FunctionDecl(nz.org.riskscape.dsl.Token start, Optional<AST.Metadata> id, Optional<AST.Metadata> description, Optional<AST.Metadata> category, AST.StructType argumentTypesDecl, Optional<nz.org.riskscape.defaults.classifier.AST.TypeDecl> returnTypeDecl, Optional<AST.ExpressionDecl> pre, List<AST.Filter> body, Optional<AST.ExpressionDecl> defaultExpr, Optional<AST.ExpressionDecl> post)
-
-
Method Details
-
parseTypes
public List<nz.org.riskscape.problem.Problem> parseTypes(nz.org.riskscape.engine.typexp.TypeBuilder builder) -
parseExpressions
public List<nz.org.riskscape.problem.Problem> parseExpressions(nz.org.riskscape.rl.ExpressionParser parser) -
scanStructKeys
-
getInputType
public nz.org.riskscape.engine.types.Struct getInputType() -
getBoundaryToken
public nz.org.riskscape.dsl.Token getBoundaryToken()- Specified by:
getBoundaryToken
in classAST
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
getArgumentTypesDecl
-