|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsun.reflect.generics.parser.SignatureParser
public class SignatureParser
Parser for type signatures, as defined in the Java Virtual // Machine Specification (JVMS) chapter 4. Converts the signatures into an abstract syntax tree (AST) representation. // See the package sun.reflect.generics.tree for details of the AST.
| Method Summary | |
|---|---|
static SignatureParser |
make()
Static factory method. |
ClassSignature |
parseClassSig(String s)
Parses a class signature (as defined in the JVMS, chapter 4) and produces an abstract syntax tree representing it. |
MethodTypeSignature |
parseMethodSig(String s)
Parses a method signature (as defined in the JVMS, chapter 4) and produces an abstract syntax tree representing it. |
TypeSignature |
parseTypeSig(String s)
Parses a type signature and produces an abstract syntax tree representing it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static SignatureParser make()
public ClassSignature parseClassSig(String s)
s - a string representing the input class signature
GenericSignatureFormatError - if the input is not a valid
class signaturepublic MethodTypeSignature parseMethodSig(String s)
s - a string representing the input method signature
GenericSignatureFormatError - if the input is not a valid
method signaturepublic TypeSignature parseTypeSig(String s)
s - a string representing the input type signature
GenericSignatureFormatError - if the input is not a valid
type signature
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||