Class BCMethodDescriptor


  • class BCMethodDescriptor
    extends java.lang.Object
    A method descriptor. Ie. something that describes the type of a method, parameter types and return types. It is not an instance of a method.
    This has no generated class specific state.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static java.lang.String[] EMPTY  
      private java.lang.String vmDescriptor  
      private java.lang.String[] vmParameterTypes  
      private java.lang.String vmReturnType  
    • Constructor Summary

      Constructors 
      Constructor Description
      BCMethodDescriptor​(java.lang.String[] vmParameterTypes, java.lang.String vmReturnType, BCJava factory)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) java.lang.String buildMethodDescriptor()
      builds the JVM method descriptor for this method as defined in JVM Spec 4.3.3, Method Descriptors.
      boolean equals​(java.lang.Object other)  
      (package private) static java.lang.String get​(java.lang.String[] vmParameterTypes, java.lang.String vmReturnType, BCJava factory)  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • EMPTY

        static final java.lang.String[] EMPTY
      • vmParameterTypes

        private final java.lang.String[] vmParameterTypes
      • vmReturnType

        private final java.lang.String vmReturnType
      • vmDescriptor

        private final java.lang.String vmDescriptor
    • Constructor Detail

      • BCMethodDescriptor

        BCMethodDescriptor​(java.lang.String[] vmParameterTypes,
                           java.lang.String vmReturnType,
                           BCJava factory)
    • Method Detail

      • get

        static java.lang.String get​(java.lang.String[] vmParameterTypes,
                                    java.lang.String vmReturnType,
                                    BCJava factory)
      • buildMethodDescriptor

        java.lang.String buildMethodDescriptor()
        builds the JVM method descriptor for this method as defined in JVM Spec 4.3.3, Method Descriptors.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object