jpel.language
Class ExpressionCharacter

java.lang.Object
  |
  +--jpel.language.AbstractExpression
        |
        +--jpel.language.ExpressionObject
              |
              +--jpel.language.ExpressionCharacter
All Implemented Interfaces:
ComparableExpression, Expression, java.io.Serializable, StringableExpression

public class ExpressionCharacter
extends ExpressionObject
implements StringableExpression, ComparableExpression

Indica o tipo character da linguagem.

See Also:
Serialized Form

Constructor Summary
ExpressionCharacter(char value)
           
ExpressionCharacter(java.lang.Character value)
           
 
Method Summary
 java.lang.String asString()
          Fornece uma representação em String da expressão.
 int compareTo(jpel.language.ComparableExpression expression)
          Indicates a order relation throught instances of the same type.
 char getChar()
           
 java.lang.String toString()
           
 
Methods inherited from class jpel.language.ExpressionObject
equivalent, eval, freeVariable, rebuild
 
Methods inherited from class jpel.language.AbstractExpression
createClone, getData, getData, getSource, getType, setData, setSource, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jpel.language.Expression
createClone, equivalent, eval, freeVariable, getData, getData, getSource, getType, rebuild, setData, setSource, setType
 

Constructor Detail

ExpressionCharacter

public ExpressionCharacter(char value)

ExpressionCharacter

public ExpressionCharacter(java.lang.Character value)
Method Detail

getChar

public char getChar()

asString

public java.lang.String asString()
Description copied from interface: StringableExpression
Fornece uma representação em String da expressão.

Specified by:
asString in interface StringableExpression
Returns:
A String correspondente.

compareTo

public int compareTo(jpel.language.ComparableExpression expression)
              throws BadTypedException
Description copied from interface: ComparableExpression
Indicates a order relation throught instances of the same type.

Specified by:
compareTo in interface ComparableExpression
Returns:
-1 if it comes before then the give expression, 0 if is in the same leve, and 1 otherwise.
Throws:
BadTypedException - When a wrong comparation type is passed.

toString

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