|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
TopLevelClass.ParseException
public static class TopLevelClass.ParseException
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.
入れ子のクラスの概要 | |
---|---|
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 |
コンストラクタの詳細 |
---|
public TopLevelClass.ParseException(java.lang.String msg,
java.lang.String sourceName,
int index,
int line,
int column)
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.public TopLevelClass.ParseException(java.lang.String msg, TopLevelClass.Token position)
msg
- a message to describes the error.position
- a token that describes the position of the error.メソッドの詳細 |
---|
public final java.lang.String getSourceName() throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
- if the method is not suported.public final int getIndex() throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
- if the method is not suported.public final int getLine() throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
- if the method is not suported.public final int getColumn() throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
- if the method is not suported.public final java.lang.String getGCCStylePositionString() throws java.lang.UnsupportedOperationException
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()
.
java.lang.UnsupportedOperationException
- getSourceName() was not suppoted.
|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |