Package com.sun.codemodel
Class JCodeModel.TypeNameParser
java.lang.Object
com.sun.codemodel.JCodeModel.TypeNameParser
- Enclosing class:
JCodeModel
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate JClass
parseArguments
(JClass rawType) Parses '<T1,T2,...,Tn>'private JClass
parseSuffix
(JClass clazz) Parses additional left-associative suffixes, like type arguments and array specifiers.(package private) JClass
Parses a type name token T (which can be potentially of the form Tr&ly;T1,T2,...>, or "? extends/super T".)private void
ws()
Skips whitespaces
-
Field Details
-
s
-
idx
private int idx
-
-
Constructor Details
-
TypeNameParser
-
-
Method Details
-
parseTypeName
Parses a type name token T (which can be potentially of the form Tr&ly;T1,T2,...>, or "? extends/super T".)- Returns:
- the index of the character next to T.
- Throws:
ClassNotFoundException
-
parseSuffix
Parses additional left-associative suffixes, like type arguments and array specifiers.- Throws:
ClassNotFoundException
-
ws
private void ws()Skips whitespaces -
parseArguments
Parses '<T1,T2,...,Tn>'- Returns:
- the index of the character next to '>'
- Throws:
ClassNotFoundException
-