Constructor and Description |
---|
LetType(TypeDeclaration[] declarations,
Type base)
Construct let types of declarations and base types.
|
Modifier and Type | Method and Description |
---|---|
AST |
accept(ASTVisitor visitor)
Accept visitor for a visit.
|
Type |
getBase()
get base type
|
TypeDeclaration[] |
getDeclarations()
get declarations
|
Type |
instantiateType()
return copy of AST with value references instantiated by the substitutions
set in the corresponding declaration identifiers
|
void |
printCore(java.io.PrintWriter out)
Prints text representation of tree on out (without new line termination).
|
printParens, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
printParens, toString
public LetType(TypeDeclaration[] declarations, Type base)
declarations
- the local bindings in the types.base
- the base type.public TypeDeclaration[] getDeclarations()
public Type getBase()
public Type instantiateType()
public void printCore(java.io.PrintWriter out)
public AST accept(ASTVisitor visitor)
visitor
- the visitor who is accepted by this node.