module JSignature: sig
.. end
This module describe the signatures used with generics. It defines
the data types used to represent information extracted from the
Signature attribute defined in Java 5 (chapter 4.4.4).
Types used in type declarations of generic signatures
type
typeVariable =
This is the type used for type variables as P in Collection<P>.
type
typeArgument =
type
simpleClassTypeSignature = {
|
scts_name : string ; |
|
scts_type_arguments : typeArgument list ; |
}
type
classTypeSignature = {
}
type
formalTypeParameter = {
}
type
throwsSignature =
type
typeSignature =
typeSignature
is used for method parameters and return values of
generic methods.
Types of generic signatures
type
classSignature = {
}
type
fieldTypeSignature =
This type is for references. Generic fields are of this type (it
cannot be of a basic type as it would not be generic anymore) but
method arguments or even generic parameters are also of this
type.
type
methodTypeSignature = {
}