Package org.jboss.jandex
Class GenericSignatureParser
java.lang.Object
org.jboss.jandex.GenericSignatureParser
A simple recursive decent generic signature parser.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
(package private) static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Map
<String, TypeVariable> private Map
<String, TypeVariable> private NameTable
private int
private String
private Map
<String, TypeVariable> private static WildcardType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate int
private int
advanceNot
(char c) private int
advancePast
(char c) private void
expect
(char c) static void
private Type
(package private) GenericSignatureParser.ClassSignature
parseClassSignature
(String signature) private Type
(package private) Type
parseFieldSignature
(String signature) private Type
(package private) GenericSignatureParser.MethodSignature
parseMethodSignature
(String signature) private DotName
private Type
private Type
private Type
private Type[]
private Type[]
parseTypeList
(boolean argument) private Type
private Type[]
private Type
private Type
parseWildCard
(boolean isExtends) private TypeVariable
resolveBounds
(Type type) private TypeVariable
resolveType
(String identifier) private Type
resolveType
(Type type) private void
resolveTypeList
(ArrayList<Type> list)
-
Field Details
-
UNBOUNDED_WILDCARD
-
signature
-
pos
private int pos -
names
-
typeParameters
-
elementTypeParameters
-
classTypeParameters
-
-
Constructor Details
-
GenericSignatureParser
GenericSignatureParser(NameTable names)
-
-
Method Details
-
parseClassSignature
-
expect
private void expect(char c) -
parseFieldSignature
-
parseMethodSignature
-
parseClassTypeSignature
-
parseTypeArguments
-
parseTypeParameters
-
parseTypeList
-
parseTypeArgument
-
parseWildCard
-
parseTypeParameter
-
parseReturnType
-
parseReferenceType
-
parseArrayType
-
parseTypeVariable
-
resolveTypeList
-
resolveType
-
resolveBounds
-
resolveType
-
parseJavaType
-
advancePast
private int advancePast(char c) -
advanceNot
private int advanceNot(char c) -
parseName
-
advanceNameEnd
private int advanceNameEnd() -
main
- Throws:
IOException
-