|
|||||||||
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.METHOD
public class METHOD
Quads.METHOD
nodes encode method-specific information:
the mapping of method formals to temporary variables, and
links to the exception handlers for the method.
The 0-edge out of the Quads.METHOD
quad points to the
beginning of the executable code for the method. Other
edges point to HANDLER
quads defining execution
handlers. The lowest-numbered HANDLER
edge
(ie, the 1-edge) is the innermost nested try-block.
HEADER
,
HANDLER
,
Serialized FormField Summary | |
---|---|
protected Temp[] |
params
the temporary variables used for method formals. |
Fields inherited from class harpoon.IR.Quads.Quad |
---|
arrayFactory |
Constructor Summary | |
---|---|
METHOD(QuadFactory qf,
HCodeElement source,
Temp[] params,
int arity)
Creates a Quads.METHOD quad. |
Method Summary | ||
---|---|---|
|
accept(QuadValueVisitor<T> v)
|
|
void |
accept(QuadVisitor v)
Accept a visitor. |
|
int |
arity()
Returns the arity of this Quads.METHOD . |
|
Temp[] |
def()
Returns the Temp s defined by this Quad . |
|
boolean |
isStatic()
Determines whether the parameters defined in this Quads.METHOD
belong to a static method. |
|
int |
kind()
Return an integer enumeration of the kind of this Quad . |
|
Temp[] |
params()
Returns the params array which associates
Temp s with formal parameters of a method. |
|
Temp |
params(int i)
Returns a specified member of the params array. |
|
int |
paramsLength()
Returns the length of the params array. |
|
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. |
|
String |
toString()
Returns human-readable representation of this Quad . |
Methods inherited from class harpoon.IR.Quads.Quad |
---|
addEdge, addEdges, addHandlers, clone, clone, clone, compareTo, 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 |
Field Detail |
---|
protected Temp[] params
Constructor Detail |
---|
public METHOD(QuadFactory qf, HCodeElement source, Temp[] params, int arity)
Quads.METHOD
quad.
params
- the Temp
s in which the formal parameters
of the method will be passed.arity
- the number of outgoing edges from this
Quads.METHOD
. Always at least one.
The number of exception handlers for this method is
(arity-1)
.Method Detail |
---|
public int arity()
Quads.METHOD
.
public Temp[] params()
params
array which associates
Temp
s with formal parameters of a method.
public Temp params(int i)
params
array.
public int paramsLength()
params
array.
public boolean isStatic()
Quads.METHOD
belong to a static method.
public Temp[] def()
Temp
s defined by this Quad
.
def
in interface UseDefable
def
in class Quad
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 |