net.mtu.eggplant.dbc
Class AssertToken

java.lang.Object
  extended byantlr.Token
      extended bynet.mtu.eggplant.dbc.AssertToken
All Implemented Interfaces:
Cloneable

public class AssertToken
extends Token

Version:
$Revision: 1.4 $

Field Summary
 
Fields inherited from class antlr.Token
badToken, EOF_TYPE, INVALID_TYPE, MIN_USER_TYPE, NULL_TREE_LOOKAHEAD, SKIP
 
Constructor Summary
AssertToken(String condition, String message)
           
AssertToken(String condition, String message, int type, String text)
           
 
Method Summary
 String getCondition()
           
 String getMessage()
           
 
Methods inherited from class antlr.Token
getColumn, getFilename, getLine, getText, getType, setColumn, setFilename, setLine, setText, setType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AssertToken

public AssertToken(String condition,
                   String message,
                   int type,
                   String text)
PreConditions
(condition != null)

AssertToken

public AssertToken(String condition,
                   String message)
PreConditions
(condition != null)
Method Detail

getMessage

public final String getMessage()
Returns:
the message for this assertion, this may be null

getCondition

public final String getCondition()
Returns:
the condition for this assertion