|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jdo.api.persistence.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(String stackSig,
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(String sig)
Return the number of words of a field based on its signature. |
static int |
countMethodArgWords(String sig)
Return the number of words of arguments to the method based on the method signature |
static int |
countMethodReturnWords(String sig)
Return the number of words of return value for the method based on the method signature |
static 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(String sig)
Return the element type for the first char in the type descriptor string. |
static String |
extractArgSig(String methodSig)
Return the stack descriptor for the arguments to a method invocation (not including any "this" argument) |
static String |
extractResultSig(String methodSig)
Return the stack descriptor for the result of a method invocation. |
static String |
extractReversedArgSig(String methodSig)
Return the reversed stack descriptor for the arguments to a method invocation (not including any "this" argument). |
static int |
nextSigElement(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 String |
remapTypes(String sig,
Map classTranslations)
classTranslations contains a set of mappings of class names. |
static String |
translateClass(String cls,
Map classTranslations)
classTranslations contains a set of mappings of class names. |
static String |
userFieldSig(String vmSig)
Translates a VM type field signature into a user-format signature. |
static String |
userFieldSig(String vmSig,
int idx)
Translates a VM type field signature into a user-format signature. |
static String |
userMethodArgs(String methodSig)
Produce a user consumable representation of a method argument list 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(String sig)
public static int countMethodReturnWords(String sig)
public static String extractResultSig(String methodSig)
public static String extractArgSig(String methodSig)
public static String extractReversedArgSig(String methodSig)
public static int countFieldWords(String sig)
public static int elementType(String sig)
public static String elementSig(int valueType)
public static int elementSize(int elementType)
public static void computeStackTypes(String stackSig,
Stack stack)
public static int nextSigElement(String stackSig,
int idx)
public static String remapTypes(String sig,
Map classTranslations)
public static String translateClass(String cls,
Map classTranslations)
public static String userFieldSig(String vmSig)
public static String userFieldSig(String vmSig,
int idx)
public static String userMethodArgs(String methodSig)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||