|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectharpoon.IR.Quads.Quad
harpoon.IR.Quads.FOOTER
public class FOOTER
FOOTER
nodes are used to anchor the bottom end of the quad
graph. They do not represent bytecode and are not executable.
RETURN
and THROW
nodes should have a
FOOTER
node as their only successor.
HEADER
,
RETURN
,
THROW
,
Serialized FormField Summary |
---|
Fields inherited from class harpoon.IR.Quads.Quad |
---|
arrayFactory |
Constructor Summary | |
---|---|
FOOTER(QuadFactory qf,
HCodeElement source,
int arity)
Creates a FOOTER . |
Method Summary | ||
---|---|---|
|
accept(QuadValueVisitor<T> v)
|
|
void |
accept(QuadVisitor v)
Accept a visitor. |
|
int |
arity()
Returns the number of predecessors of this FOOTER . |
|
FOOTER |
attach(Quad q,
int which_succ)
Attach a new Quad to this FOOTER by replacing it. |
|
int |
kind()
Return an integer enumeration of the kind of this Quad . |
|
FOOTER |
remove(int which_pred)
Remove an attachment from this FOOTER by replacing
the footer. |
|
Quad |
rename(QuadFactory qqf,
TempMap defMap,
TempMap useMap)
Create a new Quad identical to the receiver, but
with all Temp s renamed according to a mapping. |
|
FOOTER |
resize(int new_arity)
Change the arity of this FOOTER by replacing it. |
|
String |
toString()
Returns human-readable representation of this Quad . |
Methods inherited from class harpoon.IR.Quads.Quad |
---|
addEdge, addEdges, addHandlers, clone, clone, clone, compareTo, def, defC, edgeC, edges, getFactory, getID, getLineNumber, getSourceFile, handlers, hashCode, isPred, isSucc, map, map, map, next, next, nextEdge, nextEdge, nextLength, pred, predC, prev, prev, prevEdge, prevEdge, prevLength, remove, removeHandlers, rename, replace, succ, succC, toLongString, transferHandlers, use, useC |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FOOTER(QuadFactory qf, HCodeElement source, int arity)
FOOTER
.
Method Detail |
---|
public int arity()
FOOTER
.
public FOOTER attach(Quad q, int which_succ)
FOOTER
by replacing it.
q
- the new Quad
to attach.which_succ
- the edge leaving q to attach to the
FOOTER
.
FOOTER
.public FOOTER resize(int new_arity)
FOOTER
by replacing it.
The new edges if any are the highest numbered incoming
edges and are left null.
public FOOTER remove(int which_pred)
FOOTER
by replacing
the footer.
which_pred
- which incoming edge to remove.
FOOTER
.public int kind()
Quad
Quad
. The enumerated values are defined in
QuadKind
.
kind
in class Quad
public Quad rename(QuadFactory qqf, TempMap defMap, TempMap useMap)
Quad
Quad
identical to the receiver, but
with all Temp
s renamed according to a mapping.
The new Quad
will have no edges.
The new Quad
will come from the specified
QuadFactory
.
rename
in class Quad
public void accept(QuadVisitor v)
Quad
accept
in class Quad
public <T> T accept(QuadValueVisitor<T> v)
accept
in class Quad
public String toString()
Quad
.
toString
in class Quad
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |