EOS 2  1.1.0
Einfache Objektbasierte Sprache
Öffentliche Methoden | Öffentliche Attribute | Geschützte Attribute | Aufstellung aller Elemente
de.lathanda.eos.interpreter.parser.en.ParseException Klassenreferenz
Klassendiagramm für de.lathanda.eos.interpreter.parser.en.ParseException:
Inheritance graph
[Legende]

Öffentliche Methoden

 ParseException (Token currentTokenVal, int[][] expectedTokenSequencesVal, String[] tokenImageVal)
 
 ParseException ()
 
 ParseException (String message)
 

Öffentliche Attribute

Token currentToken
 
int[][] expectedTokenSequences
 
String[] tokenImage
 

Geschützte Attribute

String eol = System.getProperty("line.separator", "\n")
 

Ausführliche Beschreibung

This exception is thrown when parse errors are encountered. You can explicitly create objects of this exception type by calling the method generateParseException in the generated parser.

You can modify this class to customize your error reporting mechanisms so long as you retain the public fields.

Definiert in Zeile 14 der Datei ParseException.java.

Beschreibung der Konstruktoren und Destruktoren

◆ ParseException() [1/3]

de.lathanda.eos.interpreter.parser.en.ParseException.ParseException ( Token  currentTokenVal,
int  expectedTokenSequencesVal[][],
String[]  tokenImageVal 
)

This constructor is used by the method "generateParseException" in the generated parser. Calling this constructor generates a new object of this type with the fields "currentToken", "expectedTokenSequences", and "tokenImage" set.

Definiert in Zeile 29 der Datei ParseException.java.

◆ ParseException() [2/3]

de.lathanda.eos.interpreter.parser.en.ParseException.ParseException ( )

The following constructors are for use by you for whatever purpose you can think of. Constructing the exception in this manner makes the exception behave in the normal way - i.e., as documented in the class "Throwable". The fields "errorToken", "expectedTokenSequences", and "tokenImage" do not contain relevant information. The JavaCC generated code does not use these constructors.

Definiert in Zeile 50 der Datei ParseException.java.

◆ ParseException() [3/3]

de.lathanda.eos.interpreter.parser.en.ParseException.ParseException ( String  message)

Constructor with message.

Definiert in Zeile 55 der Datei ParseException.java.

Dokumentation der Datenelemente

◆ currentToken

Token de.lathanda.eos.interpreter.parser.en.ParseException.currentToken

This is the last token that has been consumed successfully. If this object has been created due to a parse error, the token followng this token will (therefore) be the first error token.

Definiert in Zeile 65 der Datei ParseException.java.

◆ eol

String de.lathanda.eos.interpreter.parser.en.ParseException.eol = System.getProperty("line.separator", "\n")
protected

The end of line string for this machine.

Definiert in Zeile 134 der Datei ParseException.java.

◆ expectedTokenSequences

int [][] de.lathanda.eos.interpreter.parser.en.ParseException.expectedTokenSequences

Each entry in this array is an array of integers. Each array of integers represents a sequence of tokens (by their ordinal values) that is expected at this point of the parse.

Definiert in Zeile 72 der Datei ParseException.java.

◆ tokenImage

String [] de.lathanda.eos.interpreter.parser.en.ParseException.tokenImage

This is a reference to the "tokenImage" array of the generated parser within which the parse error occurred. This array is defined in the generated ...Constants interface.

Definiert in Zeile 79 der Datei ParseException.java.


Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei:
Impressum