IT. Expert System.

Android Reference

GenericSignatureParser


org.apache.harmony.luni.lang.reflect

Class GenericSignatureParser



  • public class GenericSignatureParser
    extends Object
    Implements a parser for the generics signature attribute. Uses a top-down, recursive descent parsing approach for the following grammar:
     ClassSignature ::=
         OptFormalTypeParams SuperclassSignature {SuperinterfaceSignature}.
     SuperclassSignature ::= ClassTypeSignature.
     SuperinterfaceSignature ::= ClassTypeSignature.
    
     OptFormalTypeParams ::=
         ["<" formaltypeparameter {formaltypeparameter} ">"].
    
     FormalTypeParameter ::= Ident ClassBound {InterfaceBound}.
     ClassBound ::= ":" [FieldTypeSignature].
     InterfaceBound ::= ":" FieldTypeSignature.
    
     FieldTypeSignature ::=
         ClassTypeSignature | ArrayTypeSignature | TypeVariableSignature.
     ArrayTypeSignature ::= "[" TypSignature.
    
     ClassTypeSignature ::=
         "L" {Ident "/"} Ident OptTypeArguments {"." Ident OptTypeArguments} ";".
    
     OptTypeArguments ::= "<" typeargument {typeargument} ">".
    
     TypeArgument ::= ([WildcardIndicator] FieldTypeSignature) | "*".
     WildcardIndicator ::= "+" | "-".
    
     TypeVariableSignature ::= "T" Ident ";".
    
     TypSignature ::= FieldTypeSignature | BaseType.
     BaseType ::= "B" | "C" | "D" | "F" | "I" | "J" | "S" | "Z".
    
     MethodTypeSignature ::=
         OptFormalTypeParams "(" {TypeSignature} ")" ReturnType {ThrowsSignature}.
     ThrowsSignature ::= ("^" ClassTypeSignature) | ("^" TypeVariableSignature).
    
     ReturnType ::= TypSignature | VoidDescriptor.
     VoidDescriptor ::= "V".
     
    • Constructor Detail

      • GenericSignatureParser

        public GenericSignatureParser(ClassLoader loader)
    • Method Detail

      • parseForClass

        public void parseForClass(GenericDeclaration genericDecl,
                         String signature)
        Parses the generic signature of a class and creates the data structure representing the signature.
        Parameters:
        genericDecl - the GenericDeclaration calling this method
        signature - the generic signature of the class
      • parseForMethod

        public void parseForMethod(GenericDeclaration genericDecl,
                          String signature,
                          Class<?>[] rawExceptionTypes)
        Parses the generic signature of a method and creates the data structure representing the signature.
        Parameters:
        genericDecl - the GenericDeclaration calling this method
        signature - the generic signature of the class
      • parseForConstructor

        public void parseForConstructor(GenericDeclaration genericDecl,
                               String signature,
                               Class<?>[] rawExceptionTypes)
        Parses the generic signature of a constructor and creates the data structure representing the signature.
        Parameters:
        genericDecl - the GenericDeclaration calling this method
        signature - the generic signature of the class
      • parseForField

        public void parseForField(GenericDeclaration genericDecl,
                         String signature)
        Parses the generic signature of a field and creates the data structure representing the signature.
        Parameters:
        genericDecl - the GenericDeclaration calling this method
        signature - the generic signature of the class


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 1811 / . Delta: 0.00653 с