|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectharpoon.Tools.PatMat.Spec.Stm
harpoon.Tools.PatMat.Spec.StmData
public static class Spec.StmData
Extension of Spec.Stm representing a raw datum in
memory.
DATUM| Field Summary | |
|---|---|
Spec.Exp |
data
A IR.Tree.CONST or IR.Tree.NAME
specifying the value with which to initialize this location. |
| Constructor Summary | |
|---|---|
Spec.StmData(Spec.Exp data)
Constructs a new Spec.StmData. |
|
| Method Summary | |
|---|---|
void |
accept(Spec.StmVisitor v)
Applies v's visit method to
this. |
Spec.Stm |
build(Spec.ExpList kids)
Creates a new Spec.Stm similar to this one,
using the provided Spec.ExpList of children. |
boolean |
canBeRootOfData()
Checks if this Stm object is valid for Data
patterns. |
Spec.ExpList |
kids()
Creates an Spec.ExpList of children of this
Spec.Stm. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final Spec.Exp data
IR.Tree.CONST or IR.Tree.NAME
specifying the value with which to initialize this location.
| Constructor Detail |
|---|
public Spec.StmData(Spec.Exp data)
Spec.StmData.
data - Value expression.| Method Detail |
|---|
public void accept(Spec.StmVisitor v)
Spec.Stmv's visit method to
this. This is effectively a gludge to
emulate multiple dispatch. Must be reimplemented
by all subclasses of Spec.Stm.
v.visit(this).
accept in class Spec.Stmpublic Spec.Stm build(Spec.ExpList kids)
Spec.StmSpec.Stm similar to this one,
using the provided Spec.ExpList of children.
build in class Spec.Stmpublic Spec.ExpList kids()
Spec.StmSpec.ExpList of children of this
Spec.Stm.
kids in class Spec.Stmpublic String toString()
toString in class Objectpublic boolean canBeRootOfData()
Spec.StmStm object is valid for Data
patterns.
Most patterns are for code generation, not data tables.
Specific subclasses of Stm that wish to be
matched when generating data tables should override this
method to return true.
canBeRootOfData in class Spec.Stm
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||