public final class LetTerm extends LetExpression implements Term
inKeyword, letKeyword, precedence| Modifier and Type | Method and Description |
|---|---|
void |
accept(ASTVisitor visitor)
Accept visitor for a visit.
|
static LetTerm |
construct(ValueDefinition[] d,
Term b)
Construct term with local value definitions.
|
Term |
getBody()
Get body.
|
ValueDefinition[] |
getDefinitions()
Get definitions.
|
Type |
getType()
Set type annotation of term.
|
void |
setType(Type type)
Set type annotation of term.
|
accept, acceptChildren, getPrecedencegetPosition, isLeftAssociative, isRightAssociative, setPositionaccept, accept, print, printCore, toString, toStringCoreequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPrecedence, isLeftAssociative, isRightAssociativegetPosition, setPositionaccept, acceptChildren, print, printCore, toString, toStringCorepublic void setType(Type type)
public Type getType()
public static LetTerm construct(ValueDefinition[] d, Term b)
d - the definitions.b - the body of the term.public ValueDefinition[] getDefinitions()
getDefinitions in class LetExpressionpublic Term getBody()
getBody in class LetExpressionpublic void accept(ASTVisitor visitor)
accept in interface ASTaccept in class LetExpressionvisitor - the visitor who is accepted by this node.