Class ElementDescriptors


  • public final class ElementDescriptors
    extends java.lang.Object
    Utility class for getting field and method descriptors.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getFieldDescriptor​(javax.lang.model.element.VariableElement element)
      Returns the field descriptor of the given element.
      static java.lang.String getMethodDescriptor​(javax.lang.model.element.ExecutableElement element)
      Returns the method descriptor of the given element.
      • Methods inherited from class java.lang.Object

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

      • getFieldDescriptor

        public static java.lang.String getFieldDescriptor​(javax.lang.model.element.VariableElement element)
        Returns the field descriptor of the given element.

        This is useful for matching Kotlin Metadata JVM Signatures with elements from the AST.

        For reference, see the JVM specification, section 4.3.2.

      • getMethodDescriptor

        public static java.lang.String getMethodDescriptor​(javax.lang.model.element.ExecutableElement element)
        Returns the method descriptor of the given element.

        This is useful for matching Kotlin Metadata JVM Signatures with elements from the AST.

        For reference, see the JVM specification, section 4.3.3.