Class ModulesTools

java.lang.Object
org.eclipse.ease.ui.modules.ui.ModulesTools

public final class ModulesTools
extends Object
  • Method Details

    • getSignature

      public static org.eclipse.jface.viewers.StyledString getSignature​(Method method, boolean useStyledReturnValue)
      Generates the signature of the method. Optional parameters are written in italic.
      Parameters:
      method - inspected method
      Returns:
      signature of method.
    • getDeclaringModule

      @Deprecated public static ModuleDefinition getDeclaringModule​(Method method)
      Deprecated.
      Do not use as this method might yield wrong results!!!
      Get the module owning the method provided.
      Parameters:
      method - inspected method
      Returns:
      module containing the method or null.
    • getDeclaringModule

      public static ModuleDefinition getDeclaringModule​(Field field)
      Get the module owning the field provided.
      Parameters:
      field - inspected field
      Returns:
      module containing the field or null.
    • getOptionalParameterCount

      public static int getOptionalParameterCount​(Method method)