|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSFE.GUI.Statement
public class Statement
A statement in a function code. The statement is a line of code, with information about indentation level.
Field Summary | |
---|---|
java.lang.String |
code
|
int |
ident
|
int |
level
|
int |
nextLevel
|
Constructor Summary | |
---|---|
Statement(int level,
int nextLevel,
java.lang.String code)
Build a new statement |
|
Statement(int level,
int nextLevel,
java.lang.String code,
boolean output)
Build a new statemenet |
|
Statement(int level,
java.lang.String code)
Build a new statement |
|
Statement(java.lang.String code)
|
Method Summary | |
---|---|
int |
getLevel()
Get indentation level |
int |
getNextLevel()
Get next-line indentation level |
void |
setIdent(int ident)
Set indentation level |
java.lang.String |
toString()
Get the string representation of the statement |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int level
public int nextLevel
public java.lang.String code
public int ident
Constructor Detail |
---|
public Statement(java.lang.String code)
public Statement(int level, java.lang.String code)
level
- Indentation levelcode
- The code linepublic Statement(int level, int nextLevel, java.lang.String code)
level
- Indentation levelcode
- The code linepublic Statement(int level, int nextLevel, java.lang.String code, boolean output)
level
- Indentation levelnextLevel
- The level of the following linecode
- The code lineoutput
- Wether to output this line in the codeMethod Detail |
---|
public void setIdent(int ident)
ident
- indentation levelpublic int getLevel()
public int getNextLevel()
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 |