Class FunctionName

  • Direct Known Subclasses:
    SyntheticFunctionName

    public class FunctionName
    extends java.lang.Object
    Described the name of WebAssembly function.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String className
      The Java class name like "java/lang/String".
      java.lang.String fullName
      The name in the WebAssembly.
      java.lang.String methodName
      The method name like "hashCode".
      java.lang.String signature
      The signature part.
      java.lang.String signatureName
      The Java signature which is used in Java byte code to reference the method call.
    • Constructor Summary

      Constructors 
      Constructor Description
      FunctionName​(Member methodOrField)
      Create a new instance from the given reference in the ConstantPool or parsed method.
      FunctionName​(Member methodOrField, java.lang.String signature)
      Create a new instance from the given reference in the ConstantPool and a special signature.
      FunctionName​(java.lang.String signatureName)
      Create a new instance from the given values
      FunctionName​(java.lang.String className, java.lang.String methodName, java.lang.String signature)
      Create a new instance from the given values
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      java.util.Iterator<AnyType> getSignature​(TypeManager types)
      Get the method signature iterator for parameter and return values.
      int hashCode()
      • Methods inherited from class java.lang.Object

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

      • className

        @Nonnull
        public final java.lang.String className
        The Java class name like "java/lang/String".
      • methodName

        @Nonnull
        public final java.lang.String methodName
        The method name like "hashCode".
      • fullName

        @Nonnull
        public final java.lang.String fullName
        The name in the WebAssembly. For example: "java/lang/String.hashCode"
      • signatureName

        @Nonnull
        public final java.lang.String signatureName
        The Java signature which is used in Java byte code to reference the method call. For example: "java/lang/String.hashCode()I"
      • signature

        @Nonnull
        public final java.lang.String signature
        The signature part. For example: "()I"
    • Constructor Detail

      • FunctionName

        FunctionName​(@Nonnull
                     Member methodOrField)
        Create a new instance from the given reference in the ConstantPool or parsed method.
        Parameters:
        methodOrField - the Java method
      • FunctionName

        FunctionName​(@Nonnull
                     Member methodOrField,
                     java.lang.String signature)
        Create a new instance from the given reference in the ConstantPool and a special signature.
        Parameters:
        methodOrField - the Java method
        signature - the Java signature
      • FunctionName

        FunctionName​(java.lang.String className,
                     java.lang.String methodName,
                     java.lang.String signature)
        Create a new instance from the given values
        Parameters:
        className - the Java class name
        methodName - the Java method name
        signature - the Java signature
      • FunctionName

        public FunctionName​(java.lang.String signatureName)
        Create a new instance from the given values
        Parameters:
        signatureName - the full Java method signature like "com/foo/Bar.method()V"
    • Method Detail

      • hashCode

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • getSignature

        @Nonnull
        public java.util.Iterator<AnyType> getSignature​(TypeManager types)
        Get the method signature iterator for parameter and return values.
        Parameters:
        types - the type manager
        Returns:
        the iterator