| Modifier and Type | Field and Description |
|---|---|
| private static final boolean | |
| private static final char | |
| private int | |
| private String | |
| private int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private char | |
| private Error | |
| private void | |
| public static SignatureParser | |
| private void | |
| private String | |
| private ArrayTypeSignature | |
| private BaseType | |
| private FieldTypeSignature[] | |
| public ClassSignature | Returns: An abstract syntax tree for a class signature corresponding to the input stringa string representing the input class signature s)Parses a class signature (as defined in the JVMS, chapter 4) and produces an abstract syntax tree representing it. |
| private ClassSignature | parseClassSignature()
ClassSignature: FormalTypeParameters_opt SuperclassSignature SuperinterfaceSignature* |
| private ClassTypeSignature | parseClassTypeSignature()
ClassTypeSignature: "L" PackageSpecifier_opt SimpleClassTypeSignature ClassTypeSignatureSuffix* ";" |
| private void | parseClassTypeSignatureSuffix(List<SimpleClassTypeSignature> scts)
ClassTypeSignatureSuffix: "." SimpleClassTypeSignature |
| private FieldTypeSignature | parseFieldTypeSignature()
FieldTypeSignature: ClassTypeSignature ArrayTypeSignature TypeVariableSignature |
| private FieldTypeSignature | |
| private TypeSignature[] | |
| private FormalTypeParameter | |
| private FormalTypeParameter[] | |
| private String | |
| public MethodTypeSignature | Returns: An abstract syntax tree for a method signature corresponding to the input stringa string representing the input method signature s)Parses a method signature (as defined in the JVMS, chapter 4) and produces an abstract syntax tree representing it. |
| private MethodTypeSignature | parseMethodTypeSignature()
MethodTypeSignature: FormalTypeParameters_opt "(" TypeSignature* ")" ReturnType ThrowsSignature* |
| private SimpleClassTypeSignature | |
| private ReturnType | |
| private SimpleClassTypeSignature | |
| private ClassTypeSignature[] | |
| private FieldTypeSignature | |
| private TypeArgument | |
| private TypeArgument[] | |
| public TypeSignature | Returns: An abstract syntax tree for a type signature corresponding to the input stringa string representing the input type signature s)Parses a type signature and produces an abstract syntax tree representing it. |
| private TypeSignature | |
| private TypeVariableSignature | |
| private FormalTypeParameter[] | |
| private FieldTypeSignature[] | |
| private TypeSignature[] | |
| private void | progress(int startingPosition)
Verify the parse has made forward progress; throw an exception if no progress. |
| private String | |
| private void |
| DEBUG | back to summary |
|---|---|
| private static final boolean DEBUG | |
| EOI | back to summary |
|---|---|
| private static final char EOI | |
| index | back to summary |
|---|---|
| private int index | |
| input | back to summary |
|---|---|
| private String input | |
| mark | back to summary |
|---|---|
| private int mark | |
| SignatureParser | back to summary |
|---|---|
| private SignatureParser() | |
| advance | back to summary |
|---|---|
| private void advance() | |
| current | back to summary |
|---|---|
| private char current() | |
| error | back to summary |
|---|---|
| private Error error(String errorMsg) | |
| init | back to summary |
|---|---|
| private void init(String s) | |
| make | back to summary |
|---|---|
| public static SignatureParser make() Static factory method. Produces a parser instance.
| |
| mark | back to summary |
|---|---|
| private void mark() | |
| markToCurrent | back to summary |
|---|---|
| private String markToCurrent() | |
| parseArrayTypeSignature | back to summary |
|---|---|
| private ArrayTypeSignature parseArrayTypeSignature() ArrayTypeSignature: "[" TypeSignature | |
| parseBaseType | back to summary |
|---|---|
| private BaseType parseBaseType() | |
| parseBounds | back to summary |
|---|---|
| private FieldTypeSignature[] parseBounds() ClassBound: ":" FieldTypeSignature_opt InterfaceBound: ":" FieldTypeSignature | |
| parseClassSig | back to summary |
|---|---|
| public ClassSignature parseClassSig(String s) Parses a class signature (as defined in the JVMS, chapter 4) and produces an abstract syntax tree representing it.
| |
| parseClassSignature | back to summary |
|---|---|
| private ClassSignature parseClassSignature() ClassSignature: FormalTypeParameters_opt SuperclassSignature SuperinterfaceSignature* | |
| parseClassTypeSignature | back to summary |
|---|---|
| private ClassTypeSignature parseClassTypeSignature() ClassTypeSignature: "L" PackageSpecifier_opt SimpleClassTypeSignature ClassTypeSignatureSuffix* ";" | |
| parseClassTypeSignatureSuffix | back to summary |
|---|---|
| private void parseClassTypeSignatureSuffix(List<SimpleClassTypeSignature> scts) ClassTypeSignatureSuffix: "." SimpleClassTypeSignature | |
| parseFieldTypeSignature | back to summary |
|---|---|
| private FieldTypeSignature parseFieldTypeSignature() FieldTypeSignature: ClassTypeSignature ArrayTypeSignature TypeVariableSignature | |
| parseFieldTypeSignature | back to summary |
|---|---|
| private FieldTypeSignature parseFieldTypeSignature(boolean allowArrays) | |
| parseFormalParameters | back to summary |
|---|---|
| private TypeSignature[] parseFormalParameters() | |
| parseFormalTypeParameter | back to summary |
|---|---|
| private FormalTypeParameter parseFormalTypeParameter() FormalTypeParameter: Identifier ClassBound InterfaceBound* | |
| parseFormalTypeParameters | back to summary |
|---|---|
| private FormalTypeParameter[] parseFormalTypeParameters() FormalTypeParameters: "<" FormalTypeParameter+ ">" | |
| parseIdentifier | back to summary |
|---|---|
| private String parseIdentifier() | |
| parseMethodSig | back to summary |
|---|---|
| public MethodTypeSignature parseMethodSig(String s) Parses a method signature (as defined in the JVMS, chapter 4) and produces an abstract syntax tree representing it.
| |
| parseMethodTypeSignature | back to summary |
|---|---|
| private MethodTypeSignature parseMethodTypeSignature() MethodTypeSignature: FormalTypeParameters_opt "(" TypeSignature* ")" ReturnType ThrowsSignature* | |
| parsePackageNameAndSimpleClassTypeSignature | back to summary |
|---|---|
| private SimpleClassTypeSignature parsePackageNameAndSimpleClassTypeSignature() PackageSpecifier: Identifier "/" PackageSpecifier* | |
| parseReturnType | back to summary |
|---|---|
| private ReturnType parseReturnType() ReturnType: TypeSignature VoidDescriptor | |
| parseSimpleClassTypeSignature | back to summary |
|---|---|
| private SimpleClassTypeSignature parseSimpleClassTypeSignature(boolean dollar) SimpleClassTypeSignature: Identifier TypeArguments_opt | |
| parseSuperInterfaces | back to summary |
|---|---|
| private ClassTypeSignature[] parseSuperInterfaces() SuperclassSignature: ClassTypeSignature | |
| parseThrowsSignature | back to summary |
|---|---|
| private FieldTypeSignature parseThrowsSignature() ThrowsSignature: "^" ClassTypeSignature "^" TypeVariableSignature | |
| parseTypeArgument | back to summary |
|---|---|
| private TypeArgument parseTypeArgument() TypeArgument: WildcardIndicator_opt FieldTypeSignature "*" | |
| parseTypeArguments | back to summary |
|---|---|
| private TypeArgument[] parseTypeArguments() TypeArguments: "<" TypeArgument+ ">" | |
| parseTypeSig | back to summary |
|---|---|
| public TypeSignature parseTypeSig(String s) Parses a type signature and produces an abstract syntax tree representing it.
| |
| parseTypeSignature | back to summary |
|---|---|
| private TypeSignature parseTypeSignature() TypeSignature: FieldTypeSignature BaseType | |
| parseTypeVariableSignature | back to summary |
|---|---|
| private TypeVariableSignature parseTypeVariableSignature() TypeVariableSignature: "T" Identifier ";" | |
| parseZeroOrMoreFormalTypeParameters | back to summary |
|---|---|
| private FormalTypeParameter[] parseZeroOrMoreFormalTypeParameters() | |
| parseZeroOrMoreThrowsSignatures | back to summary |
|---|---|
| private FieldTypeSignature[] parseZeroOrMoreThrowsSignatures() | |
| parseZeroOrMoreTypeSignatures | back to summary |
|---|---|
| private TypeSignature[] parseZeroOrMoreTypeSignatures() | |
| progress | back to summary |
|---|---|
| private void progress(int startingPosition) Verify the parse has made forward progress; throw an exception if no progress. | |
| remainder | back to summary |
|---|---|
| private String remainder() | |
| skipIdentifier | back to summary |
|---|---|
| private void skipIdentifier() | |