Package | Description |
---|---|
org.eclipse.wst.jsdt.core | |
org.eclipse.wst.jsdt.ui | |
org.eclipse.wst.jsdt.ui.refactoring | |
org.eclipse.wst.jsdt.ui.wizards |
Modifier and Type | Method and Description |
---|---|
IFunction |
IType.createMethod(java.lang.String contents,
IJavaScriptElement sibling,
boolean force,
IProgressMonitor monitor)
Creates and returns a method or constructor in this type with the
given contents.
|
IFunction |
IJavaScriptUnit.createMethod(java.lang.String contents,
IJavaScriptElement sibling,
boolean force,
IProgressMonitor monitor)
Creates and returns a function in this javaScript file with the
given contents.
|
IFunction[] |
IJavaScriptUnit.findFunctions(IFunction function)
Finds the function in this javaScript file that correspond to
the given function.
|
IFunction[] |
IType.findMethods(IFunction method)
Finds the methods in this type that correspond to
the given method.
|
IFunction |
IType.getFunction(java.lang.String name,
java.lang.String[] parameterTypeSignatures)
Returns the method with the specified name and parameter types
in this type (for example,
"foo", {"I", "QString;"} ). |
IFunction |
IFunctionContainer.getFunction(java.lang.String name,
java.lang.String[] parameterTypeSignatures)
Returns the method with the specified name and parameter types
in this type (for example,
"foo", {"I", "QString;"} ). |
IFunction |
IFunction.getFunction(java.lang.String selector,
java.lang.String[] parameterTypeSignatures) |
IFunction[] |
IType.getFunctions()
Returns the methods and constructors declared by this type.
|
IFunction[] |
IFunctionContainer.getFunctions()
Returns the methods and constructors declared by this type or file.
|
Modifier and Type | Method and Description |
---|---|
IFunction[] |
IJavaScriptUnit.findFunctions(IFunction function)
Finds the function in this javaScript file that correspond to
the given function.
|
IFunction[] |
IType.findMethods(IFunction method)
Finds the methods in this type that correspond to
the given method.
|
boolean |
IFunction.isSimilar(IFunction method)
Returns whether this method is similar to the given method.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
CodeGeneration.getMethodComment(IFunction method,
IFunction overridden,
java.lang.String lineDelimiter)
Returns the comment for a method or constructor using the comment code templates (constructor / method / overriding method).
|
static java.lang.String |
CodeGeneration.getMethodComment(IJavaScriptUnit cu,
java.lang.String declaringTypeName,
java.lang.String methodName,
java.lang.String[] paramNames,
java.lang.String[] excTypeSig,
java.lang.String retTypeSig,
IFunction overridden,
java.lang.String lineDelimiter)
Returns the comment for a method or constructor using the comment code templates (constructor / method / overriding method).
|
static void |
JavaScriptElementLabels.getMethodLabel(IFunction method,
long flags,
java.lang.StringBuffer buf)
Appends the label for a method to a
StringBuffer . |
protected int |
OverrideIndicatorLabelDecorator.getOverrideIndicators(IFunction method)
Note: This method is for internal use only.
|
Modifier and Type | Method and Description |
---|---|
static RenameSupport |
RenameSupport.create(IFunction method,
java.lang.String newName,
int flags)
Creates a new rename support for the given
IFunction . |
Modifier and Type | Method and Description |
---|---|
protected IFunction[] |
NewTypeWizardPage.createInheritedMethods(IType type,
boolean doConstructors,
boolean doUnimplementedMethods,
NewTypeWizardPage.ImportsManager imports,
IProgressMonitor monitor)
Creates the bodies of all unimplemented methods and constructors and adds them to the type.
|
Copyright (c) IBM Corp. and others 2000, 2016. All Rights Reserved.