|
|||||||||
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.
Field Summary | |
---|---|
protected long |
exclusive_time
If the pass is running, the time that the pass started. |
protected Goal |
goal
|
protected long |
inclusive_time
If the pass is running, the time that the pass started. |
Constructor Summary | |
---|---|
AbstractPass(Goal goal)
|
Method Summary | |
---|---|
long |
exclusiveTime()
Return the time in ms taken to run the pass, excluding the time in spawned passes |
Goal |
goal()
The goal the pass is trying to satisfy. |
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 Goal goal
protected long exclusive_time
protected long inclusive_time
Constructor Detail |
---|
public AbstractPass(Goal goal)
Method Detail |
---|
public Goal goal()
Pass
goal
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 |