Class Signature
java.lang.Object
org.fife.rsta.ac.java.classreader.attributes.AttributeInfo
org.fife.rsta.ac.java.classreader.attributes.Signature
The Signature attribute is an optional fixed-length attribute in the
attribute table of the ClassFile, field_info and method_info
structures.
WARNING: This code is a complete mess.
- Version:
- 1.0
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the class-param types of this method.getMethodParamTypes(MethodInfo mi, ClassFile cf, boolean qualified) Returns the parameter types for parameters of this method.getMethodReturnType(MethodInfo mi, ClassFile cf, boolean qualified) Returns the return type of this method.private StringReturns the type argument specified for a given type parameter.parseAdditionalTypeArgs(String typeParams) private Signature.ParamDescriptorResultparseParamDescriptor(String str, ClassFile cf, Map<String, String> additionalTypeArgs, MethodInfo mi, String errorDesc, Signature.ParamDescriptorResult res, boolean qualified) private inttoString()Methods inherited from class AttributeInfo
getClassFile, getName, readUnsupportedAttribute
-
Field Details
-
signature
-
-
Constructor Details
-
Signature
-
-
Method Details
-
getClassParamTypes
-
skipLtGt
-
getMethodParamTypes
Returns the parameter types for parameters of this method.- Parameters:
mi- The method information.cf- The class file being parsed.qualified- Whether the results should be fully-qualified.- Returns:
- The return types.
-
getMethodReturnType
Returns the return type of this method.- Parameters:
mi- The method information.cf- The class file being parsed.qualified- Whether the result should be fully-qualified.- Returns:
- The return type.
-
getSignature
-
getTypeArgument
Returns the type argument specified for a given type parameter.- Parameters:
typeVar- The type parameter name.cf- The class file with generic methods.additionalTypeArgs- Additional type arguments for a method (such as for "<T> T[] toArray(T[] a)", where the "T" type parameter is the type of an argument passed to it).- Returns:
- The type argument, or
nullif the given type parameter isn't defined.
-
parseAdditionalTypeArgs
-
parseParamDescriptor
private Signature.ParamDescriptorResult parseParamDescriptor(String str, ClassFile cf, Map<String, String> additionalTypeArgs, MethodInfo mi, String errorDesc, Signature.ParamDescriptorResult res, boolean qualified) -
toString
-