Class TypeInfoImpl

  • All Implemented Interfaces:
    TypeInfo

    public class TypeInfoImpl
    extends java.lang.Object
    implements TypeInfo
    Implementation of TypeInfo. Method information is collected during different types of class scanning (signature, method), so not everything is available at one moment.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected AnnotationInfo[] annotations
      Argument annotations are not available on method signature scanning.
    • Constructor Summary

      Constructors 
      Constructor Description
      TypeInfoImpl​(char opcode, java.lang.String type, java.lang.String name, java.lang.String rawName)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      AnnotationInfo[] getAnnotations()
      Returns annotation info of type.
      java.lang.String getName()
      Returns bytecode-like type name, e.g.
      char getOpcode()
      Returns bytecode opcode.
      java.lang.String getRawName()
      Returns bytecode-like type name, e.g.
      java.lang.String getType()
      Returns java-like, e.g.
      • Methods inherited from class java.lang.Object

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

      • annotations

        protected AnnotationInfo[] annotations
        Argument annotations are not available on method signature scanning. Therefore, we need to inject them from the outside.
    • Constructor Detail

      • TypeInfoImpl

        public TypeInfoImpl​(char opcode,
                            java.lang.String type,
                            java.lang.String name,
                            java.lang.String rawName)
    • Method Detail

      • getAnnotations

        public AnnotationInfo[] getAnnotations()
        Returns annotation info of type. SOme types (like for returning value) can't have annotation information.
        Specified by:
        getAnnotations in interface TypeInfo
      • getOpcode

        public char getOpcode()
        Returns bytecode opcode.
        Specified by:
        getOpcode in interface TypeInfo
      • getType

        public java.lang.String getType()
        Returns java-like, e.g. "java.lang.Integer".
        Specified by:
        getType in interface TypeInfo
      • getName

        public java.lang.String getName()
        Returns bytecode-like type name, e.g. "Ljava/lang/Integer;". Note that generics type names are not resolved.
        Specified by:
        getName in interface TypeInfo
        See Also:
        getRawName()
      • getRawName

        public java.lang.String getRawName()
        Returns bytecode-like type name, e.g. "Ljava/lang/Integer;".
        Specified by:
        getRawName in interface TypeInfo
        See Also:
        getName()