|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--TopLevelClass.ParseException
パースエラーを表します。パース対象のテキストが文法上、あるいは意味論上誤っている場合に発生します。
入れ子クラスの概要 | |
static class |
TopLevelClass.ParseException.AmbiguousGrammarError
¬<><∪∪ソースにエラーがあることを表します。 |
コンストラクタの概要 | |
TopLevelClass.ParseException(String msg,
String sourceName,
int index,
int line,
int column)
ParseException を構築します。
|
|
TopLevelClass.ParseException(String msg,
TopLevelClass.Token position)
ParseException を構築します。
|
メソッドの概要 | |
int |
getColumn()
エラーを引き起こしている桁を返します。 |
String |
getGCCStylePositionString()
GNU Compiler Collection スタイルの、エラーの位置を表す文字列を返します。 |
int |
getIndex()
エラーを引き起こしている位置を返します。 |
int |
getLine()
エラーを引き起こしている行を返します。 |
String |
getSourceName()
エラーを引き起こしているテキストの名前を返します。 |
クラス 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(String msg,
String sourceName,
int index,
int line,
int column)
ParseException
を構築します。
msg
- メッセージ。sourceName
- エラーを引き起こしているテキストの名前。サポートされない場合 null
。index
- エラーを引き起こしている位置。サポートされない場合 -1
。line
- エラーを引き起こしている行。サポートされない場合 -1
。column
- エラーを引き起こしている桁。サポートされない場合 -1
。public TopLevelClass.ParseException(String msg, TopLevelClass.Token position)
ParseException
を構築します。
msg
- メッセージ。position
- エラーを引き起こしているトークン。メソッドの詳細 |
public final String getSourceName() throws UnsupportedOperationException
UnsupportedOperationException
- サポートされない場合。public final int getIndex() throws UnsupportedOperationException
UnsupportedOperationException
- サポートされない場合。public final int getLine() throws UnsupportedOperationException
UnsupportedOperationException
- サポートされない場合。public final int getColumn() throws UnsupportedOperationException
UnsupportedOperationException
- サポートされない場合。public final String getGCCStylePositionString() throws UnsupportedOperationException
getSourceName() がサポートされない場合、UnsupportedOperationException が投げられます。
getLine() がサポートされない場合、getSourceName()
が返されます。
さもなくば、getSourceName() + ":" + getLine()
が返されます。
UnsupportedOperationException
- getSourceName() がサポートされていない
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |