|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jdo.impl.enhancer.classfile.Descriptor
public class Descriptor
A collection of static methods which manipulate type descriptors
Field Summary |
---|
Constructor Summary | |
---|---|
Descriptor()
|
Method Summary | |
---|---|
static void |
computeStackTypes(java.lang.String stackSig,
java.util.Stack stack)
stackSig is a signature for a list of types on the JVM stack with the last type in the signature intended to be on the top of JVM stack. |
static int |
countFieldWords(java.lang.String sig)
Return the number of words of a field based on its signature. |
static int |
countMethodArgWords(java.lang.String sig)
Return the number of words of arguments to the method based on the method signature |
static int |
countMethodReturnWords(java.lang.String sig)
Return the number of words of return value for the method based on the method signature |
static java.lang.String |
elementSig(int valueType)
Return the element type descriptor char for the element type. |
static int |
elementSize(int elementType)
Return the number of stack words required for a value of the specified type on the operand stack. |
static int |
elementType(java.lang.String sig)
Return the element type for the first char in the type descriptor string. |
static java.lang.String |
extractArgSig(java.lang.String methodSig)
Return the stack descriptor for the arguments to a method invocation (not including any "this" argument) |
static java.lang.String |
extractResultSig(java.lang.String methodSig)
Return the stack descriptor for the result of a method invocation. |
static java.lang.String |
extractReversedArgSig(java.lang.String methodSig)
Return the reversed stack descriptor for the arguments to a method invocation (not including any "this" argument). |
static int |
nextSigElement(java.lang.String stackSig,
int idx)
stackSig is a signature for the types on the stack with the last type in the signature on the top of stack. |
static java.lang.String |
remapTypes(java.lang.String sig,
java.util.Map classTranslations)
classTranslations contains a set of mappings of class names. |
static java.lang.String |
translateClass(java.lang.String cls,
java.util.Map classTranslations)
classTranslations contains a set of mappings of class names. |
static java.lang.String |
userFieldSig(java.lang.String vmSig)
Translates a VM type field signature into a user-format signature. |
static java.lang.String |
userFieldSig(java.lang.String vmSig,
int idx)
Translates a VM type field signature into a user-format signature. |
static java.lang.String |
userMethodArgs(java.lang.String methodSig)
Produce a user consumable representation of a method argument list from the method signature. |
static java.lang.String |
userMethodResult(java.lang.String methodSig)
Produce a user consumable representation of a method result type from the method signature. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Descriptor()
Method Detail |
---|
public static int countMethodArgWords(java.lang.String sig)
public static int countMethodReturnWords(java.lang.String sig)
public static java.lang.String extractResultSig(java.lang.String methodSig)
public static java.lang.String extractArgSig(java.lang.String methodSig)
public static java.lang.String extractReversedArgSig(java.lang.String methodSig)
public static int countFieldWords(java.lang.String sig)
public static int elementType(java.lang.String sig)
public static java.lang.String elementSig(int valueType)
public static int elementSize(int elementType)
public static void computeStackTypes(java.lang.String stackSig, java.util.Stack stack)
public static int nextSigElement(java.lang.String stackSig, int idx)
public static java.lang.String remapTypes(java.lang.String sig, java.util.Map classTranslations)
public static java.lang.String translateClass(java.lang.String cls, java.util.Map classTranslations)
public static java.lang.String userFieldSig(java.lang.String vmSig)
public static java.lang.String userFieldSig(java.lang.String vmSig, int idx)
public static java.lang.String userMethodArgs(java.lang.String methodSig)
public static java.lang.String userMethodResult(java.lang.String methodSig)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |