Methods Summary |
---|
public com.sun.org.apache.bcel.internal.generic.Instruction | ADD()
return null; // should never be called
|
public com.sun.org.apache.bcel.internal.generic.Instruction | CMP(boolean less)
return null; // should never be called
|
public com.sun.org.apache.bcel.internal.generic.Instruction | DIV()
return null; // should never be called
|
public com.sun.org.apache.bcel.internal.generic.Instruction | DUP()
return DUP; // default
|
public com.sun.org.apache.bcel.internal.generic.BranchInstruction | GE(boolean tozero)
return null; // should never be called
|
public com.sun.org.apache.bcel.internal.generic.BranchInstruction | GT(boolean tozero)
return null; // should never be called
|
public com.sun.org.apache.bcel.internal.generic.BranchInstruction | LE(boolean tozero)
return null; // should never be called
|
public com.sun.org.apache.bcel.internal.generic.Instruction | LOAD(int slot)
return null; // should never be called
|
public com.sun.org.apache.bcel.internal.generic.BranchInstruction | LT(boolean tozero)
return null; // should never be called
|
public com.sun.org.apache.bcel.internal.generic.Instruction | MUL()
return null; // should never be called
|
public com.sun.org.apache.bcel.internal.generic.Instruction | NEG()
return null; // should never be called
|
public com.sun.org.apache.bcel.internal.generic.Instruction | POP()
return POP;
|
public com.sun.org.apache.bcel.internal.generic.Instruction | REM()
return null; // should never be called
|
public com.sun.org.apache.bcel.internal.generic.Instruction | STORE(int slot)
return null; // should never be called
|
public com.sun.org.apache.bcel.internal.generic.Instruction | SUB()
return null; // should never be called
|
public int | distanceTo(com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type type)Returns the distance between two types. This measure is used to select
overloaded functions/operators. This method is typically redefined by
the subclasses.
return type == this ? 0 : Integer.MAX_VALUE;
|
public java.lang.String | getClassName()Returns the class name of an internal type's external representation.
return(EMPTYSTRING);
|
public abstract boolean | identicalTo(com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type other)Returns true if this and other are identical types.
|
public boolean | implementedAsMethod()Returns true if this type has no object representaion. Redefined in
ResultTreeType.
return false;
|
public boolean | isNumber()Returns true if this type is a numeric type. Redefined in NumberType.
return false;
|
public boolean | isSimple()Returns true if this type is a simple type. Redefined in NumberType,
BooleanType and StringType.
return false;
|
public static com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type | newObjectType(java.lang.String javaClassName)Factory method to instantiate object types. Returns a pre-defined
instance for "java.lang.Object" and "java.lang.String".
if (javaClassName == "java.lang.Object") {
return Type.Object;
}
else if (javaClassName == "java.lang.String") {
return Type.ObjectString;
}
else {
//
java.security.AccessControlContext acc = java.security.AccessController.getContext();
acc.checkPermission(new RuntimePermission("getContextClassLoader"));
return new ObjectType(javaClassName);
}
|
public static com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type | newObjectType(java.lang.Class clazz)Factory method to instantiate object types. Returns a pre-defined
instance for java.lang.Object.class and java.lang.String.class.
if (clazz == java.lang.Object.class) {
return Type.Object;
}
else if (clazz == java.lang.String.class) {
return Type.ObjectString;
}
else {
return new ObjectType(clazz);
}
|
public abstract com.sun.org.apache.bcel.internal.generic.Type | toJCType()
|
public abstract java.lang.String | toSignature()Returns the signature of an internal type's external representation.
|
public abstract java.lang.String | toString()Returns a string representation of this type.
|
public void | translateBox(com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator classGen, com.sun.org.apache.xalan.internal.xsltc.compiler.util.MethodGenerator methodGen)Translates an object of this type to its boxed representation.
ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,
toString(), "["+toString()+"]");
classGen.getParser().reportError(Constants.FATAL, err);
|
public void | translateFrom(com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator classGen, com.sun.org.apache.xalan.internal.xsltc.compiler.util.MethodGenerator methodGen, java.lang.Class clazz)Translates an external (Java) type denoted by clazz to
an object of this type. This method is used to translate return values
when external functions are called.
ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,
clazz.getClass().toString(), toString());
classGen.getParser().reportError(Constants.FATAL, err);
|
public void | translateTo(com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator classGen, com.sun.org.apache.xalan.internal.xsltc.compiler.util.MethodGenerator methodGen, com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type type)Translates an object of this type to an object of type
type .
Expects an object of the former type and pushes an object of the latter.
ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,
toString(), type.toString());
classGen.getParser().reportError(Constants.FATAL, err);
|
public void | translateTo(com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator classGen, com.sun.org.apache.xalan.internal.xsltc.compiler.util.MethodGenerator methodGen, java.lang.Class clazz)Translates an object of this type to the external (Java) type denoted
by clazz . This method is used to translate parameters
when external functions are called.
ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,
toString(), clazz.getClass().toString());
classGen.getParser().reportError(Constants.FATAL, err);
|
public com.sun.org.apache.xalan.internal.xsltc.compiler.FlowList | translateToDesynthesized(com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator classGen, com.sun.org.apache.xalan.internal.xsltc.compiler.util.MethodGenerator methodGen, com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type type)Translates object of this type to an object of type type .
Expects an object of the former type and pushes an object of the latter
if not boolean. If type type is boolean then a branchhandle
list (to be appended to the false list) is returned.
FlowList fl = null;
if (type == Type.Boolean) {
fl = translateToDesynthesized(classGen, methodGen,
(BooleanType)type);
}
else {
translateTo(classGen, methodGen, type);
}
return fl;
|
public com.sun.org.apache.xalan.internal.xsltc.compiler.FlowList | translateToDesynthesized(com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator classGen, com.sun.org.apache.xalan.internal.xsltc.compiler.util.MethodGenerator methodGen, com.sun.org.apache.xalan.internal.xsltc.compiler.util.BooleanType type)Translates an object of this type to an non-synthesized boolean. It
does not push a 0 or a 1 but instead returns branchhandle list to be
appended to the false list.
ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,
toString(), type.toString());
classGen.getParser().reportError(Constants.FATAL, err);
return null;
|
public void | translateUnBox(com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator classGen, com.sun.org.apache.xalan.internal.xsltc.compiler.util.MethodGenerator methodGen)Translates an object of this type to its unboxed representation.
ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,
"["+toString()+"]", toString());
classGen.getParser().reportError(Constants.FATAL, err);
|