jpel.language
Class DeclarationType

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

public class DeclarationType
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.DeclarationType FUNCTION
          Representa o tipo função.
static jpel.language.DeclarationType MODULE
          Representa o tipo módulo.
static jpel.language.DeclarationType NATIVE
          Representa o tipo nativo.
static jpel.language.DeclarationType UNKNOWN
          representa um tipo ainda não conhecido.
 
Method Summary
 boolean equivalent(java.lang.Object obj)
           
 int getType()
           
 boolean isFunction()
           
 boolean isModule()
           
 boolean isNative()
           
 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.DeclarationType 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.


FUNCTION

public static final jpel.language.DeclarationType FUNCTION
Representa o tipo função.


NATIVE

public static final jpel.language.DeclarationType NATIVE
Representa o tipo nativo.


MODULE

public static final jpel.language.DeclarationType MODULE
Representa o tipo módulo.

Method Detail

getType

public int getType()

isUnknown

public boolean isUnknown()

isFunction

public boolean isFunction()

isNative

public boolean isNative()

isModule

public boolean isModule()

equivalent

public boolean equivalent(java.lang.Object obj)

toString

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