クラス TopLevelClass.ParseException

java.lang.Object
  上位を拡張 java.lang.Throwable
      上位を拡張 java.lang.Exception
          上位を拡張 TopLevelClass.ParseException
すべての実装されたインタフェース:
java.io.Serializable
含まれているクラス:
TopLevelClass

public static class TopLevelClass.ParseException
extends java.lang.Exception

Describes a error of a text.

The program generated by ¬<><∪∪ throws this exception only if the parsed text has some syntactical error. But, the users of ¬<><∪∪ may throw this exception if it has some semantic error.

導入されたバージョン:
notavaCC 1.0
関連項目:
直列化された形式

入れ子のクラスの概要
static class TopLevelClass.ParseException.AmbiguousGrammarError
          Indicates the source of the notavaCC, which generates this Java program, has ambiguity.
 
コンストラクタの概要
TopLevelClass.ParseException(java.lang.String msg, java.lang.String sourceName, int index, int line, int column)
          Constructs an exception.
TopLevelClass.ParseException(java.lang.String msg, TopLevelClass.Token position)
          Constructs an exception.
 
メソッドの概要
 int getColumn()
          Returns the column number where the exception is occured.
 java.lang.String getGCCStylePositionString()
          Returns the GNU-Compiler-Collection-style string that describes the position of the error.
 int getIndex()
          Returns the index number where the exception is occured.
 int getLine()
          Returns the line number where the exception is occured.
 java.lang.String getSourceName()
          Returns the source name where the exception is occured.
 
クラス java.lang.Throwable から継承されたメソッド
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

TopLevelClass.ParseException

public TopLevelClass.ParseException(java.lang.String msg,
                                    java.lang.String sourceName,
                                    int index,
                                    int line,
                                    int column)
Constructs an exception.

パラメータ:
msg - a message to describes the error.
sourceName - the source name where the exception is occured, or null if not supported.
index - the index number where the exception is occured, or -1 if not supported.
line - the line number where the exception is occured, or -1 if not supported.
column - the column number where the exception is occured, or -1 if not supported.
導入されたバージョン:
notavaCC 1.0

TopLevelClass.ParseException

public TopLevelClass.ParseException(java.lang.String msg,
                                    TopLevelClass.Token position)
Constructs an exception.

パラメータ:
msg - a message to describes the error.
position - a token that describes the position of the error.
導入されたバージョン:
notavaCC 1.0
メソッドの詳細

getSourceName

public final java.lang.String getSourceName()
                                     throws java.lang.UnsupportedOperationException
Returns the source name where the exception is occured.

戻り値:
the source name where the exception is occured.
例外:
java.lang.UnsupportedOperationException - if the method is not suported.
導入されたバージョン:
notavaCC 1.0

getIndex

public final int getIndex()
                   throws java.lang.UnsupportedOperationException
Returns the index number where the exception is occured.

戻り値:
the index number where the exception is occured.
例外:
java.lang.UnsupportedOperationException - if the method is not suported.
導入されたバージョン:
notavaCC 1.0

getLine

public final int getLine()
                  throws java.lang.UnsupportedOperationException
Returns the line number where the exception is occured.

戻り値:
the line number where the exception is occured.
例外:
java.lang.UnsupportedOperationException - if the method is not suported.
導入されたバージョン:
notavaCC 1.0

getColumn

public final int getColumn()
                    throws java.lang.UnsupportedOperationException
Returns the column number where the exception is occured.

戻り値:
the column number where the exception is occured.
例外:
java.lang.UnsupportedOperationException - if the method is not suported.
導入されたバージョン:
notavaCC 1.0

getGCCStylePositionString

public final java.lang.String getGCCStylePositionString()
                                                 throws java.lang.UnsupportedOperationException
Returns the GNU-Compiler-Collection-style string that describes the position of the error.

This method throws an UnsupportedOperationException if getSourceName() is not supported. Otherwise, it returns getSourceName() if getLine() is not supported. Otherwise, it returns getSourceName() + ":" + getLine() if getColumn() is not supported. Otherwise, it returns getSourceName() + ":" + getLine() + ":" + getColumn().

戻り値:
the GCC-style string describing the position of the error.
例外:
java.lang.UnsupportedOperationException - getSourceName() was not suppoted.
導入されたバージョン:
notavaCC 1.0