Class ExecutableIdentifier

java.lang.Object
org.mule.extensions.java.internal.parameters.ExecutableIdentifier
Direct Known Subclasses:
ConstructorIdentifier, MethodIdentifier, StaticMethodIdentifier

public abstract class ExecutableIdentifier extends Object
A unique identifier for a given Executable element
Since:
1.0
  • Constructor Details

    • ExecutableIdentifier

      public ExecutableIdentifier()
  • Method Details

    • getClazz

      public abstract String getClazz()
      Returns:
      the name of the declaring Class of this Executable element, or empty string if it is unknown.
    • getElementId

      public abstract String getElementId()
      Provides the ID of the Executable element being represented by this ExecutableIdentifierFactory.

      For example, for method public void echo(String message, int times), the result of invoking this method will be "echo#String,int".

      Returns:
      the ID of the Executable element being represented by this ExecutableIdentifierFactory.
    • getElementName

      public String getElementName()
      Provides the name of the Executable element being represented by this ExecutableIdentifierFactory.

      For example, for method public void echo(String message, int times), the result of invoking this method will be "echo".

      Returns:
      the name of the Executable element being represented by this ExecutableIdentifierFactory.
    • getArgumentTypeNames

      public Optional<String[]> getArgumentTypeNames()
      Provides the type name of the Executable arguments being represented by this ExecutableIdentifierFactory.

      For example, for method public void echo(String message, int times), the result of invoking this method will be ["String", "int"].

      Returns:
      the type name of the Executable arguments element being represented by this ExecutableIdentifierFactory. if the id of this ExecutableIdentifierFactory is invalid, empty() will be returned.
    • matches

      public abstract boolean matches(Executable element)
      Returns:
      whether or not this identifier matches the given identifier
    • getExecutableTypeName

      public abstract String getExecutableTypeName()
      Returns:
      the name of the executable element type
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object
    • buildId

      protected String buildId(String elementName, Class<?>[] argTypes)
    • matchesArguments

      protected boolean matchesArguments(Class[] arguments)