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).Retrieve fields declared by this type.getInterfaces(String typename) Retrieve interfaces implemented by a Java-like type.getMethods(String typename) Retrieve all methods and constructors declared by this type (not its supertypes).getParentTypes(String typename) Retrieve parent types of a Java-like type.getSupertype(String typename) Retrieve the supertype of a Java-like type.Retrieve a Java-like type.getTypeAnnotations(String typename) Retrieve annotations attached to this type.
-
Method Details
-
getType
Retrieve a Java-like type.- Parameters:
typename- a class or interface type name (binary form or jvm form)- Returns:
- the type, or null
-
getSupertype
Retrieve the supertype of a Java-like type.- 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
Retrieve interfaces implemented by a Java-like type.- 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
Retrieve parent types of a Java-like type.- 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:
- the method, or null
-
getFields
Retrieve fields declared by this type.- 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
Retrieve annotations attached to this type.- 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)
-