|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.util.Utils
org.multijava.util.compiler.Phylum
org.multijava.mjc.JPhylum
This class is a superclass for all elements of the parsing tree. That is, all classes for nodes of the AST descend from this class.
| Field Summary | |
static JPhylum[] |
EMPTY
|
| Fields inherited from class org.multijava.util.compiler.Phylum |
|
| Fields inherited from class org.multijava.util.Utils |
DBG_LEVEL_HIGH, DBG_LEVEL_LOW, DBG_LEVEL_NO |
| Constructor Summary | |
JPhylum(TokenReference where)
construct an element of the parsing tree |
|
| Method Summary | |
abstract void |
accept(MjcVisitor p)
Accepts the specified visitor |
void |
check(CContextType context,
boolean cond,
MessageDescription description)
Verifies that the condition is true; otherwise adds an error. |
void |
check(CContextType context,
boolean cond,
MessageDescription description,
Object param)
Verifies that the condition is true; otherwise adds an error. |
void |
check(CContextType context,
boolean cond,
MessageDescription description,
Object param1,
Object param2)
Verifies that the condition is true; otherwise adds an error. |
void |
check(CContextType context,
boolean cond,
MessageDescription description,
Object[] params)
Verifies that the condition is true; otherwise adds an error. |
protected void |
fail(CContextType context,
MessageDescription description)
Adds a compiler error. |
protected void |
fail(CContextType context,
MessageDescription description,
Object param)
Adds a compiler error. |
protected void |
fail(CContextType context,
MessageDescription description,
Object[] params)
Adds a compiler error. |
void |
warn(CContextType context,
MessageDescription description)
Gives a warning message. |
void |
warn(CContextType context,
MessageDescription description,
Object param)
Gives a warning message. |
void |
warn(CContextType context,
MessageDescription description,
Object param1,
Object param2)
Gives a warning message. |
void |
warn(CContextType context,
MessageDescription description,
Object[] params)
Gives a warning message. |
| Methods inherited from class org.multijava.util.compiler.Phylum |
getTokenReference, setTokenReference |
| Methods inherited from class org.multijava.util.Utils |
assertTrue, assertTrue, combineArrays, escapeString, escapeString, fail, fail, getFilePath, hasFlag, hasOtherFlags, parsePathParts, relativePathTo, splitQualifiedName, splitQualifiedName, stripJavaModifiers, stripNonJavaModifiers, stripPrivateModifier, unescapeString, vectorToArray, vectorToIntArray |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final JPhylum[] EMPTY
| Constructor Detail |
public JPhylum(TokenReference where)
where - the token reference of this node| Method Detail |
protected void fail(CContextType context,
MessageDescription description,
Object[] params)
throws PositionedError
context - the context in which the error occurreddescription - the message ident to be displayedparams - the array of parameters
PositionedError
protected void fail(CContextType context,
MessageDescription description)
throws PositionedError
context - the context in which the error occurreddescription - the message ident to be displayed
PositionedError
protected void fail(CContextType context,
MessageDescription description,
Object param)
throws PositionedError
context - the context in which the error occurreddescription - the message ident to be displayedparam - the parameter
PositionedError
public final void check(CContextType context,
boolean cond,
MessageDescription description,
Object[] params)
throws PositionedError
context - the context in which the check occurredcond - the condition to verifydescription - the message ident to be displayedparams - the array of parameters
PositionedError
public final void check(CContextType context,
boolean cond,
MessageDescription description,
Object param1,
Object param2)
throws PositionedError
context - the context in which the check occurredcond - the condition to verifydescription - the message ident to be displayedparam1 - the first parameterparam2 - the second parameter
PositionedError
public final void check(CContextType context,
boolean cond,
MessageDescription description,
Object param)
throws PositionedError
context - the context in which the check occurredcond - the condition to verifydescription - the message ident to be displayedparam - the parameter
PositionedError
public final void check(CContextType context,
boolean cond,
MessageDescription description)
throws PositionedError
context - the context in which the check occurredcond - the condition to verifydescription - the message ident to be displayed
PositionedError
public final void warn(CContextType context,
MessageDescription description,
Object[] params)
throws PositionedError
context - the context in which the warning occurreddescription - the message ident to be displayedparams - the array of parameters
PositionedError
public final void warn(CContextType context,
MessageDescription description)
throws PositionedError
context - the context in which the warning occurreddescription - the message ident to be displayed
PositionedError
public final void warn(CContextType context,
MessageDescription description,
Object param)
throws PositionedError
context - the context in which the warning occurreddescription - the message ident to be displayedparam - the parameter
PositionedError
public final void warn(CContextType context,
MessageDescription description,
Object param1,
Object param2)
throws PositionedError
context - the context in which the warning occurreddescription - the message ident to be displayedparam1 - the parameterparam2 - the parameter
PositionedErrorpublic abstract void accept(MjcVisitor p)
p - the visitor
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||