Package org.eclipse.ease.ui.modules.ui
Class ModulesTools
java.lang.Object
org.eclipse.ease.ui.modules.ui.ModulesTools
-
Method Summary
Modifier and TypeMethodDescriptionstatic ModuleDefinition
getDeclaringModule
(Field field) Get the module owning the field provided.static ModuleDefinition
getDeclaringModule
(Method method) Deprecated.Do not use as this method might yield wrong results!!!static int
getOptionalParameterCount
(Method method) static org.eclipse.jface.viewers.StyledString
getSignature
(Method method, boolean useStyledReturnValue) Generates the signature of the method.
-
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.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
Get the module owning the field provided.- Parameters:
field
- inspected field- Returns:
- module containing the field or null.
-
getOptionalParameterCount
-