Class Signature

    • Constructor Detail

      • Signature

        public Signature()
    • Method Detail

      • getSignature

        public static java.lang.String getSignature​(javax.lang.model.element.Element element)
      • getClassSignature

        private static java.lang.String getClassSignature​(javax.lang.model.element.TypeElement element)
                                                   throws java.io.IOException
        ClassSignature: FormalTypeParametersopt SuperclassSignature SuperinterfaceSignature* Lorg/vesalainen/bcc/Test;Ljava/lang/Cloneable;;
        Parameters:
        clazz -
        Returns:
        Throws:
        java.io.IOException
      • formalTypeParameters

        private static void formalTypeParameters​(Signature.Result sb,
                                                 java.util.List<? extends javax.lang.model.element.TypeParameterElement> typeParameters)
                                          throws java.io.IOException
        FormalTypeParameters: < FormalTypeParameter+ >
        Parameters:
        clazz -
        Throws:
        java.io.IOException
      • formalTypeParameter

        private static void formalTypeParameter​(Signature.Result sb,
                                                javax.lang.model.element.TypeParameterElement typeParameter)
                                         throws java.io.IOException
        FormalTypeParameter: Identifier ClassBound InterfaceBound*
        Parameters:
        typeVariable -
        Throws:
        java.io.IOException
      • classTypeSignature

        private static void classTypeSignature​(Signature.Result sb,
                                               javax.lang.model.type.TypeMirror type)
                                        throws java.io.IOException
        ClassTypeSignature: L PackageSpecifieropt SimpleClassTypeSignature ClassTypeSignatureSuffix* ;
        Parameters:
        sb -
        type -
        Throws:
        java.io.IOException
      • packageSpecifier

        private static void packageSpecifier​(Signature.Result sb,
                                             javax.lang.model.type.TypeMirror type)
                                      throws java.io.IOException
        PackageSpecifier: Identifier / PackageSpecifier*
        Parameters:
        sb -
        type -
        Throws:
        java.io.IOException
      • simpleClassTypeSignature

        private static void simpleClassTypeSignature​(Signature.Result sb,
                                                     javax.lang.model.type.TypeMirror type)
                                              throws java.io.IOException
        SimpleClassTypeSignature: Identifier TypeArgumentsopt
        Parameters:
        type -
        Throws:
        java.io.IOException
      • typeArguments

        private static void typeArguments​(Signature.Result sb,
                                          java.util.List<? extends javax.lang.model.type.TypeMirror> typeArguments)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • typeArgument

        private static void typeArgument​(Signature.Result sb,
                                         javax.lang.model.type.TypeMirror typeArgument)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • classTypeSignatureSuffix

        private static void classTypeSignatureSuffix​(Signature.Result sb,
                                                     javax.lang.model.type.TypeMirror type)
      • fieldTypeSignature

        private static void fieldTypeSignature​(Signature.Result sb,
                                               javax.lang.model.type.TypeMirror type)
                                        throws java.io.IOException
        FieldTypeSignature: ClassTypeSignature ArrayTypeSignature TypeVariableSignature
        Parameters:
        type -
        Throws:
        java.io.IOException
      • typeVariableSignature

        private static void typeVariableSignature​(Signature.Result sb,
                                                  javax.lang.model.type.TypeVariable type)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • getFieldSignature

        private static java.lang.String getFieldSignature​(javax.lang.model.element.VariableElement variableElement)
                                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • arrayTypeSignature

        private static void arrayTypeSignature​(Signature.Result sb,
                                               javax.lang.model.type.ArrayType type)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • typeSignature

        private static void typeSignature​(Signature.Result sb,
                                          javax.lang.model.type.TypeMirror type)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • getMethodSignature

        private static java.lang.String getMethodSignature​(javax.lang.model.element.ExecutableElement executableElement)
                                                    throws java.io.IOException
        MethodTypeSignature: FormalTypeParametersopt (TypeSignature*) ReturnType ThrowsSignature*
        Parameters:
        method -
        Returns:
        Throws:
        java.io.IOException
      • getThrowsSignature

        private static void getThrowsSignature​(Signature.Result sb,
                                               javax.lang.model.type.TypeMirror param)