Class FunctionName

java.lang.Object
de.inetsoftware.jwebassembly.module.FunctionName
Direct Known Subclasses:
SyntheticFunctionName

public class FunctionName extends Object
Described the name of WebAssembly function.
  • Field Details

    • className

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

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

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

      @Nonnull public final 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 String signature
      The signature part. For example: "()I"
  • Constructor Details

    • 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, 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(String className, String methodName, 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(String signatureName)
      Create a new instance from the given values
      Parameters:
      signatureName - the full Java method signature like "com/foo/Bar.method()V"
  • Method Details

    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getSignature

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