|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.quercus.statement.StatementGenerator
public abstract class StatementGenerator
Represents a PHP statement
| Field Summary | |
|---|---|
static int |
BREAK_FALL_THROUGH
|
static int |
FALL_THROUGH
|
static int |
RETURN
|
| Constructor Summary | |
|---|---|
StatementGenerator()
|
|
| Method Summary | |
|---|---|
abstract boolean |
analyze(AnalyzeInfo info)
Analyze the statement |
int |
fallThrough()
Returns true if the statement can fallthrough. |
void |
generate(PhpWriter out)
Generates the Java code for the statement. |
void |
generateCoda(PhpWriter out)
Generates static/initialization code code for the statement. |
void |
generateGetOut(PhpWriter out)
Generates the Java code for the statement. |
protected abstract void |
generateImpl(PhpWriter out)
Implementation of the generation. |
protected abstract Location |
getLocation()
|
boolean |
isOutUsed()
Returns true if the output is used in the statement. |
boolean |
isVarAssigned(VarExprPro var)
Returns true if the variable is ever assigned. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int FALL_THROUGH
public static final int BREAK_FALL_THROUGH
public static final int RETURN
| Constructor Detail |
|---|
public StatementGenerator()
| Method Detail |
|---|
protected abstract Location getLocation()
public abstract boolean analyze(AnalyzeInfo info)
public int fallThrough()
public boolean isVarAssigned(VarExprPro var)
var - the variable to testpublic boolean isOutUsed()
public final void generate(PhpWriter out)
throws java.io.IOException
out - the writer to the generated Java source.
java.io.IOException
protected abstract void generateImpl(PhpWriter out)
throws java.io.IOException
java.io.IOException
public void generateGetOut(PhpWriter out)
throws java.io.IOException
out - the writer to the generated Java source.
java.io.IOException
public void generateCoda(PhpWriter out)
throws java.io.IOException
out - the writer to the generated Java source.
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||