antlraux package
v0.2.1

antlraux.util
Class LexInfoException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--antlr.ANTLRException
                    |
                    +--antlr.RecognitionException
                          |
                          +--antlraux.util.LexInfoException
All Implemented Interfaces:
LexInfo, java.io.Serializable
Direct Known Subclasses:
ContextException

public class LexInfoException
extends antlr.RecognitionException
implements LexInfo

This is a version of RecognitionException that implements LexInfo

Author:
Enrique José García Cota
See Also:
Serialized Form

Field Summary
 
Fields inherited from class antlr.RecognitionException
column, fileName, line
 
Fields inherited from interface antlraux.util.LexInfo
DEFAULT_COLUMN, DEFAULT_FILENAME, DEFAULT_LINE
 
Constructor Summary
LexInfoException()
           
LexInfoException(java.lang.String s)
           
LexInfoException(java.lang.String s, LexInfo li)
           
LexInfoException(java.lang.String s, java.lang.String fileName, int line, int column)
           
 
Method Summary
 void copyLexInfo(LexInfo li)
          Copies the lexical information from other LexInfo.
 java.lang.String getLexInfoString()
          Returns true if all the information (Filename:line:column) is valid; false otherwise.
 void setColumn(int c)
          Set the column for this node
 void setFilename(java.lang.String s)
          Sets the file name for this node.
 void setLine(int l)
          Set the line for this node
 
Methods inherited from class antlr.RecognitionException
getColumn, getErrorMessage, getFilename, getLine, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface antlraux.util.LexInfo
getColumn, getFilename, getLine
 

Constructor Detail

LexInfoException

public LexInfoException()

LexInfoException

public LexInfoException(java.lang.String s)

LexInfoException

public LexInfoException(java.lang.String s,
                        java.lang.String fileName,
                        int line,
                        int column)

LexInfoException

public LexInfoException(java.lang.String s,
                        LexInfo li)
Method Detail

copyLexInfo

public void copyLexInfo(LexInfo li)
Description copied from interface: LexInfo
Copies the lexical information from other LexInfo. WARNING: do not forget the case from==null!

Specified by:
copyLexInfo in interface LexInfo

getLexInfoString

public java.lang.String getLexInfoString()
Description copied from interface: LexInfo
Returns true if all the information (Filename:line:column) is valid; false otherwise. It will usually be implemented around a FileLineFormatter, which authomatically deals with incompleteness in the information.

Specified by:
getLexInfoString in interface LexInfo

setFilename

public void setFilename(java.lang.String s)
Description copied from interface: LexInfo
Sets the file name for this node.

Specified by:
setFilename in interface LexInfo

setLine

public void setLine(int l)
Description copied from interface: LexInfo
Set the line for this node

Specified by:
setLine in interface LexInfo

setColumn

public void setColumn(int c)
Description copied from interface: LexInfo
Set the column for this node

Specified by:
setColumn in interface LexInfo

antlraux package
v0.2.1

Created by Enrique José García Cota