jpel.language
Class ExpressionType

java.lang.Object
  |
  +--jpel.language.ExpressionType
All Implemented Interfaces:
java.io.Serializable

public class ExpressionType
extends java.lang.Object
implements java.io.Serializable

Classe usada para fornecer a linguagem a noção de tipos. Por enquanto, a validação de tipo apenas está presente na avaliação de expressões.

See Also:
Serialized Form

Field Summary
static jpel.language.ExpressionType BOOLEAN
          Representa o tipo boolean.
static jpel.language.ExpressionType CHARACTER
          Representa o tipo caracter.
static jpel.language.ExpressionType ID
          Indica um identificador.
static jpel.language.ExpressionType LIST
          Representa o tipo List.
static jpel.language.ExpressionType NUMBER
          Representa o tipo numérico.
static jpel.language.ExpressionType OBJECT
          Representa o tipo Object.
static jpel.language.ExpressionType STRING
          Representa o tipo String.
static jpel.language.ExpressionType UNKNOWN
          representa um tipo ainda não conhecido.
 
Method Summary
 boolean equivalent(java.lang.Object obj)
           
 int getType()
           
 boolean isBoolean()
           
 boolean isCharacter()
           
 boolean isId()
           
 boolean isList()
           
 boolean isNumber()
           
 boolean isObject()
           
 boolean isString()
           
 boolean isUnknown()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOWN

public static final jpel.language.ExpressionType UNKNOWN
representa um tipo ainda não conhecido. Usado nas expressões ifThenElse e Switch, onde o resultado da operação não tem tipo conhecido.


BOOLEAN

public static final jpel.language.ExpressionType BOOLEAN
Representa o tipo boolean.


NUMBER

public static final jpel.language.ExpressionType NUMBER
Representa o tipo numérico.


CHARACTER

public static final jpel.language.ExpressionType CHARACTER
Representa o tipo caracter.


STRING

public static final jpel.language.ExpressionType STRING
Representa o tipo String.


OBJECT

public static final jpel.language.ExpressionType OBJECT
Representa o tipo Object.


ID

public static final jpel.language.ExpressionType ID
Indica um identificador.


LIST

public static final jpel.language.ExpressionType LIST
Representa o tipo List.

Method Detail

getType

public int getType()

isUnknown

public boolean isUnknown()

isBoolean

public boolean isBoolean()

isNumber

public boolean isNumber()

isCharacter

public boolean isCharacter()

isString

public boolean isString()

isObject

public boolean isObject()

isId

public boolean isId()

isList

public boolean isList()

equivalent

public boolean equivalent(java.lang.Object obj)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object