|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpolyglot.frontend.AbstractPass
public abstract class AbstractPass
The base class for most passes.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface polyglot.frontend.Pass |
---|
Pass.ID |
Field Summary | |
---|---|
protected long |
exclusive_time
If the pass is running, the time that the pass started. |
protected Pass.ID |
id
The id of the pass. |
protected long |
inclusive_time
If the pass is running, the time that the pass started. |
Fields inherited from interface polyglot.frontend.Pass |
---|
ADD_MEMBERS, ADD_MEMBERS_ALL, BUILD_TYPES, BUILD_TYPES_ALL, CLEAN_SIGS, CLEAN_SUPER, CLEAN_SUPER_ALL, CONSTRUCTOR_CHECK, DISAM, DISAM_ALL, DUMP, EXC_CHECK, EXIT_CHECK, FIRST_BARRIER, FOLD, FWD_REF_CHECK, INIT_CHECK, OUTPUT, PARSE, PRE_OUTPUT_ALL, REACH_CHECK, SERIALIZE, SET_EXPECTED_TYPES, TYPE_CHECK |
Constructor Summary | |
---|---|
AbstractPass(Pass.ID id)
|
Method Summary | |
---|---|
long |
exclusiveTime()
Return the time in ms taken to run the pass, excluding the time in spawned passes |
Pass.ID |
id()
The id of the pass. |
long |
inclusiveTime()
Return the time in ms taken to run the pass, including the time in spawned passes |
java.lang.String |
name()
The human-readable name of the pass. |
void |
resetTimers()
Reset the pass timer. |
abstract boolean |
run()
Run the pass, returning true on success. |
void |
toggleTimers(boolean exclusive_only)
Start or stop the pass timer. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Pass.ID id
protected long exclusive_time
protected long inclusive_time
Constructor Detail |
---|
public AbstractPass(Pass.ID id)
Method Detail |
---|
public Pass.ID id()
id
in interface Pass
public java.lang.String name()
name
in interface Pass
public abstract boolean run()
run
in interface Pass
public void toggleTimers(boolean exclusive_only)
toggleTimers
in interface Pass
public void resetTimers()
resetTimers
in interface Pass
public long exclusiveTime()
exclusiveTime
in interface Pass
public long inclusiveTime()
inclusiveTime
in interface Pass
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |