Class ReturnaddressType
java.lang.Object
org.apache.bcel.generic.Type
org.apache.bcel.generic.ReturnaddressType
Returnaddress, the type JSR or JSR_W instructions push upon the stack.
see vmspec2 �3.3.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ReturnaddressTypePredefined constant for a returnaddress with no target.Fields inherited from class Type
BOOLEAN, BYTE, CHAR, CLASS, DOUBLE, FLOAT, INT, LONG, NO_ARGS, NULL, OBJECT, SHORT, signature, STRING, STRINGBUFFER, THROWABLE, type, UNKNOWN, VOIDModifier and TypeFieldDescriptionstatic final BasicTypePredefined constant for boolean type.static final BasicTypePredefined constant for byte type.static final BasicTypePredefined constant for char type.static final ObjectTypePredefined constant for Class type.static final BasicTypePredefined constant for double type.static final BasicTypePredefined constant for float type.static final BasicTypePredefined constant for int type.static final BasicTypePredefined constant for long type.static final Type[]Empty array.static final ReferenceTypePredefined constant for null type.static final ObjectTypePredefined constant for Object type.static final BasicTypePredefined constant for short type.protected StringDeprecated.(since 6.0) will be made private; do not access directly, use getter/setterstatic final ObjectTypePredefined constant for String type.static final ObjectTypePredefined constant for StringBuffer type.static final ObjectTypePredefined constant for Throwable type.protected byteDeprecated.(since 6.0) will be made private; do not access directly, use getter/setterstatic final TypePredefined constant for unknown type.static final BasicTypePredefined constants -
Constructor Summary
ConstructorsConstructorDescriptionReturnaddressType(InstructionHandle returnTarget) Creates a ReturnaddressType object with a target. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns if the two Returnaddresses refer to the same target.Gets the target of this ReturnaddressType.inthashCode()Gets the hash code of this Type.Methods inherited from class Type
getArgumentTypes, getClassName, getMethodSignature, getReturnType, getSignature, getSignature, getSize, getType, getType, getType, getTypes, normalizeForStackOrLocal, toStringModifier and TypeMethodDescriptionstatic Type[]getArgumentTypes(String signature) Gets the argument types of a method from its signature as an array of Type objects.Gets the class name.static StringgetMethodSignature(Type returnType, Type[] argTypes) Gets the Java method signature for the given types, for example, int[] f(java.lang.String x) becomes (Ljava/lang/String;)[I.static TypegetReturnType(String signature) Gets the return type of a method from its signature as a Type object.Gets the signature for this type.static StringgetSignature(Method meth) Gets the signature for a method.intgetSize()Gets the stack size of this type.bytegetType()Gets the type as defined in Constants.static TypeGets the BCEL Type object corresponding to a runtimeClass.static TypeGets the Type object corresponding to a signature.static Type[]Gets the BCEL Type objects corresponding to an array of runtime classes.boolean, short and char variable are considered as int in the stack or local variable area.toString()
-
Field Details
-
NO_TARGET
Predefined constant for a returnaddress with no target.
-
-
Constructor Details
-
ReturnaddressType
Creates a ReturnaddressType object with a target.- Parameters:
returnTarget- The target instruction.
-
-
Method Details
-
equals
-
getTarget
Gets the target of this ReturnaddressType.- Returns:
- The target of this ReturnaddressType.
-
hashCode
-