orc.ast.extended.declaration.def
Class DefMemberClause
java.lang.Object
orc.ast.extended.declaration.def.DefMember
orc.ast.extended.declaration.def.DefMemberClause
- All Implemented Interfaces:
- ASTNode, Locatable, Located
public class DefMemberClause
- extends DefMember
A unit of syntax that encapsulates an expression definition.
Definitions are scoped in the abstract syntax tree through a Declare containing
a DefsDeclaration.
- Author:
- dkitchin
Fields inherited from class orc.ast.extended.declaration.def.DefMember |
name |
Constructor Summary |
DefMemberClause(java.lang.String name,
java.util.List<java.util.List<Pattern>> formals,
Expression body,
Type resultType,
java.util.List<java.lang.String> typeFormals,
boolean strict)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
formals
public java.util.List<java.util.List<Pattern>> formals
typeFormals
public java.util.List<java.lang.String> typeFormals
body
public Expression body
resultType
public Type resultType
strict
public boolean strict
DefMemberClause
public DefMemberClause(java.lang.String name,
java.util.List<java.util.List<Pattern>> formals,
Expression body,
Type resultType,
java.util.List<java.lang.String> typeFormals,
boolean strict)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
sigToString
public java.lang.String sigToString()
accept
public <E> E accept(Visitor<E> visitor)
extend
public void extend(AggregateDef adef)
throws CompilationException
- Specified by:
extend
in class DefMember
- Throws:
CompilationException