Interface IJLSTypeAdapter
public interface IJLSTypeAdapter
An adapter for Java-like types.
-
Method Summary
Modifier and TypeMethodDescriptionfindMethod
(String typename, String methodname, String methoddesc) Retrieve a method or constructor declared by this type (not its supertypes).getInterfaces
(String typename) getMethods
(String typename) Retrieve all methods and constructors declared by this type (not its supertypes).getParentTypes
(String typename) getSupertype
(String typename) getTypeAnnotations
(String typename)
-
Method Details
-
getType
- Parameters:
typename
- a class or interface type name (binary form or jvm form)- Returns:
-
getSupertype
- Parameters:
typename
- a class or interface type name (binary form or jvm form)- Returns:
- the supertype (binary form), null if the provided type was not found or does not exit
-
getInterfaces
- Parameters:
typename
- a class or interface type name (binary form or jvm form)- Returns:
- a list of implemented interfaces (binary forms), null if the provided typename was not found or does not exit
-
getParentTypes
- Parameters:
typename
- a class or interface type name (binary form or jvm form)- Returns:
- a list of parent types (binary forms), null if the provided typename was not found or does not exit
-
getMethods
Retrieve all methods and constructors declared by this type (not its supertypes). If possible, the static type initializer (<clinit>
) is also included.- Parameters:
typename
- a class or interface type name (binary form or jvm form)- Returns:
- a list of defined (internal) methods, null if the provided typename was not found or does not exit
-
findMethod
Retrieve a method or constructor declared by this type (not its supertypes). If possible, the static type initializer (<clinit>
) is also included.- Parameters:
typename
- a class or interface type name (binary form or jvm form)methodname
- simple method namemethoddesc
- method descriptor (internal binary format), in the form of:(argtypes)rettype
- Returns:
-
getFields
- Parameters:
typename
- a class or interface type name (binary form or jvm form)- Returns:
- a list of defined (internal) fields, null if the provided typename was not found or does not exit
-
getTypeAnnotations
- Parameters:
typename
- a class or interface type name (binary form or jvm form)- Returns:
- a list of annotations attached to the type (this method does not return annotations attached to the fields, methods, or methods' parameters defined in the queried type)
-