Constructor and Description |
---|
SubType(Expression predicate)
construct subtype with denoted predicate.
|
Modifier and Type | Method and Description |
---|---|
AST |
accept(ASTVisitor visitor)
Accept visitor for a visit.
|
Type |
getBase()
returns base type
|
Expression |
getPredicate()
returns predicate
|
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 type on out (without new line termination).
|
void |
setBase(Type base)
set base type
|
printParens, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
printParens, toString
public SubType(Expression predicate)
predicate
- the predicate defining the subtypepublic Expression getPredicate()
public Type getBase()
public void setBase(Type base)
base
- the base type of the subtypepublic Type instantiateType()
public void printCore(java.io.PrintWriter out)
public AST accept(ASTVisitor visitor)
visitor
- the visitor who is accepted by this node.