/*
* reserved comment block
* DO NOT REMOVE OR ALTER!
*/
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* $Id: RealType.java,v 1.2.4.1 2005/09/05 11:28:45 pvedula Exp $
*/
/**
* @author Jacek Ambroziak
* @author Santiago Pericas-Geertsen
*/
protected RealType() {}
return "real";
}
return this == other;
}
return "D";
}
}
/**
* @see com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type#distanceTo
*/
if (type == this) {
return 0;
}
return 1;
}
else {
}
}
/**
* Translates a real into an object of internal type <code>type</code>. The
* translation to int is undefined since reals are never converted to ints.
*
* @see com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type#translateTo
*/
}
}
}
}
else {
}
}
/**
* Expects a real on the stack and pushes its string value by calling
* <code>Double.toString(double d)</code>.
*
* @see com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type#translateTo
*/
StringType type) {
"realToString",
"(D)" + STRING_SIG)));
}
/**
* Expects a real on the stack and pushes a 0 if that number is 0.0 and
* a 1 otherwise.
*
* @see com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type#translateTo
*/
BooleanType type) {
}
/**
* Expects a real on the stack and pushes a truncated integer value
*
* @see com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type#translateTo
*/
"realToInt","(D)I")));
}
/**
* Translates a real into a non-synthesized boolean. It does not push a
* 0 or a 1 but instead returns branchhandle list to be appended to the
* false list. A NaN must be converted to "false".
*
* @see com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type#translateToDesynthesized
*/
BooleanType type) {
// Store real into a local variable
// Compare it to 0.0
//!!! call isNaN
// Compare it to itself to see if NaN
return flowlist;
}
/**
* Expects a double on the stack and pushes a boxed double. Boxed
* double are represented by an instance of <code>java.lang.Double</code>.
*
* @see com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type#translateTo
*/
"<init>", "(D)V")));
}
/**
* Translates a real into the Java type denoted by <code>clazz</code>.
* Expects a real on the stack and pushes a number of the appropriate
* type after coercion.
*/
}
}
}
}
}
}
}
// Is Double <: clazz? I.e. clazz in { Double, Number, Object }
}
else {
}
}
/**
* Translates an external (primitive) Java type into a real. Expects a java
* object on the stack and pushes a real (i.e., a double).
*/
}
}
}
}
else {
}
}
/**
* Translates an object of this type to its boxed representation.
*/
}
/**
* Translates an object of this type to its unboxed representation.
*/
DOUBLE_VALUE_SIG)));
}
return InstructionConstants.DADD;
}
return InstructionConstants.DSUB;
}
return InstructionConstants.DMUL;
}
return InstructionConstants.DDIV;
}
return InstructionConstants.DREM;
}
return InstructionConstants.DNEG;
}
}
}
return POP2;
}
}
return DUP2;
}
}