|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TreeDerivation
TreeDerivation
provides a means to access type and
derivation information for any Tree.Exp
in a code
representation.
Derivation
,
TypeMap
Method Summary | |
---|---|
Derivation.DList |
derivation(Exp exp)
Returns the derivation of a given tree expression exp . |
HClass |
typeMap(Exp exp)
Returns the type of a given tree expression exp . |
Method Detail |
---|
HClass typeMap(Exp exp) throws TypeMap.TypeNotKnownException
exp
.
If the type of the Tree.Exp
is not known, throws
TypeNotKnownException
. If the Tree.Exp
represents a derived pointer, null
is returned, in
which case the derivation()
method must
return a non-null
value. HClass.Void
is returned to indicate the type of a null pointer; as a special
case, it is also returned to indicate the type of an opaque
pointer value which does not correspond to a java object pointer
or some derivation thereof and thus should not be traced during
garbage collection.
exp
- The tree expression to examine.
exp
TypeMap.TypeNotKnownException
- if the TreeDerivation
does not have any information about exp
.TypeMap
Derivation.DList derivation(Exp exp) throws TypeMap.TypeNotKnownException
exp
.
If the derivation of the Tree.Exp
is not known,
throws TypeNotKnownException
. If the
Tree.Exp
represents a non-derived base pointer,
returns null
, in which case the typeMap()
method must return a non-null
value.
exp
- The tree expression to examine.
exp
TypeMap.TypeNotKnownException
- if the TreeDerivation
does not have any information about exp
.Derivation
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |