Class SignatureBuilder


  • public class SignatureBuilder
    extends java.lang.Object
    Generates the contents of a Signature attribute from a java type.

    TODO: this is all wrong, I'm to tired to read the pathetic excuse for a spec properly

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private SignatureBuilder()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static void classType​(java.lang.Class<?> clazz, java.lang.StringBuilder builder)  
      static java.lang.String fieldAttribute​(java.lang.reflect.Type type)
      Generates the field signiture for a field of the given type
      private static void fieldAttribute​(java.lang.reflect.Type type, java.lang.StringBuilder builder)  
      static void parametizedType​(java.lang.reflect.ParameterizedType type, java.lang.StringBuilder builder)  
      private static void wildcardType​(java.lang.reflect.WildcardType type, java.lang.StringBuilder builder)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SignatureBuilder

        private SignatureBuilder()
    • Method Detail

      • fieldAttribute

        public static java.lang.String fieldAttribute​(java.lang.reflect.Type type)
        Generates the field signiture for a field of the given type
        Parameters:
        type -
        Returns:
        the signiture, or null if no signure is required (e.g. for Class types)
      • fieldAttribute

        private static void fieldAttribute​(java.lang.reflect.Type type,
                                           java.lang.StringBuilder builder)
      • wildcardType

        private static void wildcardType​(java.lang.reflect.WildcardType type,
                                         java.lang.StringBuilder builder)
      • parametizedType

        public static void parametizedType​(java.lang.reflect.ParameterizedType type,
                                           java.lang.StringBuilder builder)
      • classType

        private static void classType​(java.lang.Class<?> clazz,
                                      java.lang.StringBuilder builder)