|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectharpoon.Tools.PatMat.Spec.Exp
harpoon.Tools.PatMat.Spec.ExpConst
public static class Spec.ExpConst
Extension of Spec.Exp that represents a Constant
value in the code.
CONST| Field Summary | |
|---|---|
Spec.TypeSet |
types
The set of types that value may take. |
Spec.Leaf |
value
The constant value associated with this. |
| Constructor Summary | |
|---|---|
Spec.ExpConst(Spec.TypeSet types,
Spec.Leaf value)
Constructs a Spec.ExpConst. |
|
| Method Summary | |
|---|---|
void |
accept(Spec.ExpVisitor v)
Applies v's visit method to
this. |
Spec.Exp |
build(Spec.ExpList kids)
Creates a new Spec.Exp similar to this one,
using the provided Spec.ExpList of children. |
Spec.ExpList |
kids()
Creates an Spec.ExpList of children of this
Spec.Exp. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final Spec.TypeSet types
value may take.
public final Spec.Leaf value
this.
| Constructor Detail |
|---|
public Spec.ExpConst(Spec.TypeSet types,
Spec.Leaf value)
Spec.ExpConst.
types - Types that value may be.value - The constant value.| Method Detail |
|---|
public void accept(Spec.ExpVisitor v)
Spec.Expv's visit method to
this. This is effectively a gludge to
emulate multiple dispatch. Must be reimplemented
by all subclasses of Spec.Exp.
v.visit(this).
accept in class Spec.Exppublic Spec.Exp build(Spec.ExpList kids)
Spec.ExpSpec.Exp similar to this one,
using the provided Spec.ExpList of children.
build in class Spec.Exppublic Spec.ExpList kids()
Spec.ExpSpec.ExpList of children of this
Spec.Exp.
kids in class Spec.Exppublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||