org.apache.xalan.xsltc.compiler.util
public final class RealType extends NumberType
| Method Summary | |
|---|---|
| Instruction | ADD() |
| Instruction | CMP(boolean less) |
| int | distanceTo(Type type) |
| Instruction | DIV() |
| Instruction | DUP() |
| boolean | identicalTo(Type other) |
| Instruction | LOAD(int slot) |
| Instruction | MUL() |
| Instruction | NEG() |
| Instruction | POP() |
| Instruction | REM() |
| Instruction | STORE(int slot) |
| Instruction | SUB() |
| Type | toJCType() |
| String | toSignature() |
| String | toString() |
| void | translateBox(ClassGenerator classGen, MethodGenerator methodGen)
Translates an object of this type to its boxed representation. |
| void | translateFrom(ClassGenerator classGen, MethodGenerator methodGen, Class clazz)
Translates an external (primitive) Java type into a real. |
| void | translateTo(ClassGenerator classGen, MethodGenerator methodGen, Type type)
Translates a real into an object of internal type type. |
| void | translateTo(ClassGenerator classGen, MethodGenerator methodGen, StringType type)
Expects a real on the stack and pushes its string value by calling
Double.toString(double d).
|
| void | translateTo(ClassGenerator classGen, MethodGenerator methodGen, BooleanType type)
Expects a real on the stack and pushes a 0 if that number is 0.0 and
a 1 otherwise.
|
| void | translateTo(ClassGenerator classGen, MethodGenerator methodGen, IntType type)
Expects a real on the stack and pushes a truncated integer value
|
| void | translateTo(ClassGenerator classGen, MethodGenerator methodGen, ReferenceType type)
Expects a double on the stack and pushes a boxed double. |
| void | translateTo(ClassGenerator classGen, MethodGenerator methodGen, Class clazz)
Translates a real into the Java type denoted by clazz.
|
| FlowList | translateToDesynthesized(ClassGenerator classGen, MethodGenerator methodGen, BooleanType type)
Translates a real into a non-synthesized boolean. |
| void | translateUnBox(ClassGenerator classGen, MethodGenerator methodGen)
Translates an object of this type to its unboxed representation. |
See Also: Type
type. The
translation to int is undefined since reals are never converted to ints.
See Also: Type
Double.toString(double d).
See Also: Type
See Also: Type
See Also: Type
java.lang.Double.
See Also: Type
clazz.
Expects a real on the stack and pushes a number of the appropriate
type after coercion.See Also: Type