vips.model.ausdruck
Class Symbol

java.lang.Object
  extended by vips.model.ausdruck.Symbol

 class Symbol
extends java.lang.Object

Diese Klasse stellt ein Symbol dar, welches vom Scanner erkannt und zurückgegeben wird


Field Summary
static int DIV
           
static int GETEILT
           
static int GLEICH
           
static int GROESSER
           
static int GROESSER_GLEICH
           
static int KLAMMER_AUF
           
static int KLAMMER_ZU
           
static int KLEINER
           
static int KLEINER_GLEICH
           
static int MAL
           
static int MINUS
           
static int MODULO
           
static int NICHT
           
static int ODER
           
static int PLUS
           
static int UND
           
static int UNGLEICH
           
static int WERT
           
static int XOR
           
 
Constructor Summary
Symbol(int typ, Wert wert)
          Neues Symbol mit gegebenen Typ und einem Wert erzeugen.
 
Method Summary
 int getTyp()
          Gibt den Typ dieses Symbols zurück.
 Wert getWert()
          Gibt den Wert dieses Symbols zurück.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UND

public static final int UND
See Also:
Constant Field Values

ODER

public static final int ODER
See Also:
Constant Field Values

XOR

public static final int XOR
See Also:
Constant Field Values

NICHT

public static final int NICHT
See Also:
Constant Field Values

GLEICH

public static final int GLEICH
See Also:
Constant Field Values

UNGLEICH

public static final int UNGLEICH
See Also:
Constant Field Values

GROESSER

public static final int GROESSER
See Also:
Constant Field Values

KLEINER

public static final int KLEINER
See Also:
Constant Field Values

GROESSER_GLEICH

public static final int GROESSER_GLEICH
See Also:
Constant Field Values

KLEINER_GLEICH

public static final int KLEINER_GLEICH
See Also:
Constant Field Values

PLUS

public static final int PLUS
See Also:
Constant Field Values

MINUS

public static final int MINUS
See Also:
Constant Field Values

MAL

public static final int MAL
See Also:
Constant Field Values

GETEILT

public static final int GETEILT
See Also:
Constant Field Values

MODULO

public static final int MODULO
See Also:
Constant Field Values

DIV

public static final int DIV
See Also:
Constant Field Values

KLAMMER_AUF

public static final int KLAMMER_AUF
See Also:
Constant Field Values

KLAMMER_ZU

public static final int KLAMMER_ZU
See Also:
Constant Field Values

WERT

public static final int WERT
See Also:
Constant Field Values
Constructor Detail

Symbol

public Symbol(int typ,
              Wert wert)
Neues Symbol mit gegebenen Typ und einem Wert erzeugen.
Der Wert darf nur angegeben werden, wenn das Symbol vom Typ WERT ist, sonst muss er null sein.

Throws:
java.lang.IllegalArgumentException - Wenn typ keine der in dieser Klasse deklarierten Konstanten ist oder wenn wert ungleich null ist aber typ nicht WERT oder wenn typ == WERT ist aber wert == null
Method Detail

getTyp

public int getTyp()
Gibt den Typ dieses Symbols zurück.


getWert

public Wert getWert()
Gibt den Wert dieses Symbols zurück.
Ein Wert ist nur dann gesetzt, wenn das Symbol vom Typ WERT ist.