Modifier and Type | Class and Description |
---|---|
public static interface | VMSupport.
type to which a type name is resolved T, type of the object representing a decoded annotation A, type of the object representing a decoded enum constant E, type of the object representing a decoded error X>Helper for |
pack-priv static interface |
Modifier and Type | Field and Description |
---|---|
private static Properties | |
private static final Unsafe |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
private static byte[] | |
public static void | decodeAndThrowThrowable(int
specifies how to interpret format, long buffer :
0: encoded info about the exception to throw (depends on buffer, boolean format )[@code true} if executing in the JVM heap, inJVMHeap, boolean false otherwisespecifies whether debug stack traces should be enabled in case of translation failure debug)Decodes the exception described by |
private static <T, A, E, X> A | |
public static < type to which a type name is resolved T, type of the object representing a decoded annotation A, type of the object representing a decoded enum constant E, type of the object representing a decoded error X> List | Returns: an immutable list ofA objectsDecodes annotations serialized in |
private static <T, A, E, X> Object | |
private static void | |
public static byte[] | encodeAnnotations(byte[] rawAnnotations, Class<?> declaringClass, ConstantPool cp, boolean forClass, Class<? extends Annotation>[] selectAnnotationClasses)
Parses |
public static byte[] | |
public static int | Returns: the number of bytes written intobuffer if bufferSize is large
enough, otherwise -N where N is the value bufferSize needs to
be to fit the encodingthe exception to encode throwable, long a native byte buffer buffer, int the size of bufferSize)buffer in bytesIf |
public static synchronized Properties | |
public static native String | |
private static native Properties | |
private static Properties | Returns: a Properties object containing only the entries inp
whose key and value are both Strings
|
private static List | Returns: an immutable list ofA objectsreads array elements from readerdis Reads an array encoded at the current read position of |
private static <T, A, E, X> T | readClass(DataInputStream dis, VMSupport.
Reads a class encoded at the current read position of |
private static <T, A, E, X> E | readEnum(DataInputStream dis, VMSupport.
Reads an enum encoded at the current read position of |
private static int | |
public static byte[] | |
private static byte[] | serializePropertiesToByteArray(Properties p)
Writes the given properties list to a byte array and return it. |
public static byte[] | |
private static void |
agentProps | back to summary |
---|---|
private static Properties agentProps |
U | back to summary |
---|---|
private static final Unsafe U |
VMSupport | back to summary |
---|---|
public VMSupport() |
bufferToBytes | back to summary |
---|---|
private static byte[] bufferToBytes(long buffer) |
decodeAndThrowThrowable | back to summary |
---|---|
public static void decodeAndThrowThrowable(int format, long buffer, boolean inJVMHeap, boolean debug) throws Throwable Decodes the exception described by
|
decodeAnnotation | back to summary |
---|---|
private static <T, A, E, X> A decodeAnnotation(DataInputStream dis, VMSupport.
|
decodeAnnotations | back to summary |
---|---|
public static <T, A, E, X> List Decodes annotations serialized in
|
decodeArray | back to summary |
---|---|
private static <T, A, E, X> Object decodeArray(DataInputStream dis, VMSupport. |
encodeAnnotation | back to summary |
---|---|
private static void encodeAnnotation(DataOutputStream dos, Annotation a) throws Exception |
encodeAnnotations | back to summary |
---|---|
public static byte[] encodeAnnotations(byte[] rawAnnotations, Class<?> declaringClass, ConstantPool cp, boolean forClass, Class<? extends Annotation>[] selectAnnotationClasses) Parses |
encodeAnnotations | back to summary |
---|---|
public static byte[] encodeAnnotations(Collection<Annotation> annotations) Encodes annotations to a byte array. The byte array can be decoded with |
encodeThrowable | back to summary |
---|---|
public static int encodeThrowable(Throwable throwable, long buffer, int bufferSize) If
|
getAgentProperties | back to summary |
---|---|
public static synchronized Properties getAgentProperties() Returns the agent properties. |
getVMTemporaryDirectory | back to summary |
---|---|
public static native String getVMTemporaryDirectory() |
initAgentProperties | back to summary |
---|---|
private static native Properties initAgentProperties(Properties props) |
onlyStrings | back to summary |
---|---|
private static Properties onlyStrings(Properties p)
|
readArray | back to summary |
---|---|
private static List Reads an array encoded at the current read position of |
readClass | back to summary |
---|---|
private static <T, A, E, X> T readClass(DataInputStream dis, VMSupport. Reads a class encoded at the current read position of |
readEnum | back to summary |
---|---|
private static <T, A, E, X> E readEnum(DataInputStream dis, VMSupport. Reads an enum encoded at the current read position of |
readLength | back to summary |
---|---|
private static int readLength(DataInputStream dis) throws IOException |
serializeAgentPropertiesToByteArray | back to summary |
---|---|
public static byte[] serializeAgentPropertiesToByteArray() throws IOException |
serializePropertiesToByteArray | back to summary |
---|---|
private static byte[] serializePropertiesToByteArray(Properties p) throws IOException Writes the given properties list to a byte array and return it. The stream written to the byte array is ISO 8859-1 encoded. |
serializePropertiesToByteArray | back to summary |
---|---|
public static byte[] serializePropertiesToByteArray() throws IOException |
writeLength | back to summary |
---|---|
private static void writeLength(DataOutputStream dos, int length) throws IOException Encodes |
decodeAnnotations(byte[], AnnotationDecoder)
to convert a byte
array (ostensibly produced by VMSupport#encodeAnnotations
) into objects.
Modifier and Type | Method and Description |
---|---|
public A | newAnnotation(T
the annotation interface of the annotation type, Map.elements of the annotation elementsCreates an object representing a decoded annotation. |
public E | newEnumValue(T
the enum type enumType, String the name of the enum constant name)Creates an object representing a decoded enum constant. |
public X | |
public T |
newAnnotation | back to summary |
---|---|
public A newAnnotation(T type, Map. Creates an object representing a decoded annotation. |
newEnumValue | back to summary |
---|---|
public E newEnumValue(T enumType, String name) Creates an object representing a decoded enum constant.
|
newErrorValue | back to summary |
---|---|
public X newErrorValue(String description) Creates an object representing a decoded error value.
|
resolveType | back to summary |
---|---|
public T resolveType(String name) Resolves a name in |
read | back to summary |
---|---|
public Object read() throws IOException |