|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectharpoon.Analysis.UseDefChecker
public class UseDefChecker
UseDefChecker
verifies that all variables are defined
before they are used. It aids in debugging code transformations.
Nested Class Summary | |
---|---|
static class |
UseDefChecker.ReachingDefsFactory
The UseDefChecker constructor takes a
ReachingDefsFactory argument to specify which
ReachingDefs implementation it should use. |
Constructor Summary | |
---|---|
UseDefChecker(HCodeFactory parent,
String reachingdefsClassName)
Creates a UseDefChecker using the named class
as the ReachingDefs implementation. |
|
UseDefChecker(HCodeFactory parent,
UseDefChecker.ReachingDefsFactory rdf)
Creates a UseDefChecker from a
ReachingDefsFactory . |
Method Summary | |
---|---|
void |
clear(HMethod m)
Removes representation of method m from all caches
in this factory and its parents. |
HCode |
convert(HMethod m)
Make an HCode from an HMethod . |
String |
getCodeName()
Returns a string naming the type of the HCode
that this factory produces. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UseDefChecker(HCodeFactory parent, UseDefChecker.ReachingDefsFactory rdf)
UseDefChecker
from a
ReachingDefsFactory
.
public UseDefChecker(HCodeFactory parent, String reachingdefsClassName)
UseDefChecker
using the named class
as the ReachingDefs
implementation.
Method Detail |
---|
public String getCodeName()
HCodeFactory
HCode
that this factory produces.
this.getCodeName()
should equal
this.convert(m).getName()
for every
HMethod m
.
getCodeName
in interface HCodeFactory
public void clear(HMethod m)
HCodeFactory
m
from all caches
in this factory and its parents.
clear
in interface HCodeFactory
public HCode convert(HMethod m)
HCodeFactory
HCode
from an HMethod
.
convert
is allowed to return null if the requested
conversion is impossible; typically this is because it's attempt
to convert a source representation failed -- for
example, because m
is a native method.
convert
in interface HCodeFactory
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |