public class JMEContext extends Terminal
Modifier and Type | Field and Description |
---|---|
static JMEContext |
MC0 |
static JMEContext |
MC128 |
static JMEContext |
MC32 |
static JMEContext |
MC64 |
static java.util.Map<java.lang.String,java.math.RoundingMode> |
ROUNDING_MAP |
Constructor and Description |
---|
JMEContext() |
JMEContext(int precision) |
JMEContext(int precision,
java.math.RoundingMode mode) |
JMEContext(java.math.MathContext mc) |
JMEContext(java.lang.String val) |
Modifier and Type | Method and Description |
---|---|
java.math.MathContext |
castToJava()
Conversión por defecto del terminal JME a tipo Java
|
JMEContext |
clone() |
java.lang.String |
entrada()
Devuelve la cadena de entrada que será reconocida por el analizador
léxico de JME para este token
|
boolean |
equals(java.lang.Object obj) |
java.math.MathContext |
getContext() |
int |
hashCode() |
java.lang.String |
toString()
Devuelve la cadena de salida con que se mostrará el token.
|
castToJME, esBooleano, esComplejo, esDiccionario, esEntero, esEnteroGrande, esNumero, esReal, esRealDoble, esRealGrande, esTexto, esVector, esVectorDe, esVectorEntero, esVectorReal
public static final JMEContext MC0
public static final JMEContext MC128
public static final JMEContext MC64
public static final JMEContext MC32
public static java.util.Map<java.lang.String,java.math.RoundingMode> ROUNDING_MAP
public JMEContext()
public JMEContext(java.math.MathContext mc)
public JMEContext(int precision)
public JMEContext(int precision, java.math.RoundingMode mode)
public JMEContext(java.lang.String val)
public java.math.MathContext getContext()
public java.lang.String entrada()
Token
public java.lang.String toString()
Token
public java.math.MathContext castToJava()
Terminal
castToJava
in class Terminal
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public JMEContext clone()