| |
|
| java.lang.Object org.netbeans.modules.uml.integration.ide.events.ElementInfo org.netbeans.modules.uml.integration.ide.events.ConstructorInfo org.netbeans.modules.uml.integration.ide.events.MethodInfo
MethodInfo | public class MethodInfo extends ConstructorInfo (Code) | | The MethodInfo communicates with the EventManager to update Describe.
MethodInfo is still a high level class. It knows how to communicate
with the EventMangaer to update Describe, but it does not know any of the
details of how to update Describe.
Because MethodInfo contains both before and after data, MethodInfo
is able to search for the metohd and update it to how the source file current
represents the method.
Revision History
No. Date Who What
--- ---- --- ----
1 2002-04-25 Darshan Reformatted to 4-space indent and added
constructor to create MethodInfo from an
IOperation
2 2002-04-26 Darshan Fixed dropped modifiers, corrected handling
of return types and parameters when
constructing a MethodInfo off an IOperation.
3 2002-04-26 Darshan Fixed NullPointerException when retrieving
return type for constructors.
4 2002-04-30 Darshan Used JavaClassUtils to map Describe's modifiers
to Java modifiers.
5 2002-05-02 Darshan Refixed using JavaClassUtils to map modifiers
- the wrong modifier was still being used.
6 2002-05-03 Darshan Kludged method parameter type retrieval to
default to int if no parameter type is found.
This prevents faulty events from producing
an unparseable Java file.
7 2002-05-06 Darshan Changed the MethodInfo(ClassInfo, IOperation)
constructor to call ElementInfo(INamedElement)
for model-source work.
8 2002-05-15 Darshan Added toString() method.
9 2002-05-22 Darshan Added code to handle method concurrency.
10 2002-06-04 Darshan Fixed bug with not picking up method parameters
correctly (issue #19).
11 2002-06-14 Darshan Fixed bug with code assuming that the parent
for an IOperation must be an IClass, instead of
an IClassifier.
12 2002-06-19 Darshan Added code to prevent interface methods being
explicitly flagged abstract.
See Also: EventManager See Also: ConstructorInfo |
CCK_CONCURRENT | final public static int CCK_CONCURRENT(Code) | | |
CCK_GUARDED | final public static int CCK_GUARDED(Code) | | |
CCK_SEQUENTIAL | final public static int CCK_SEQUENTIAL(Code) | | |
MethodInfo | public MethodInfo(ClassInfo container, int type)(Code) | | Initializes a new MethodInfo.
Parameters: container - The class that contains the data member. Parameters: type - The transaction type. See Also: ElementInfo |
getCodeGenReturnType | public String getCodeGenReturnType()(Code) | | Gets the return type of the method.
The return type. |
getDefaultReturnValue | public String getDefaultReturnValue()(Code) | | |
getLineNo | public int getLineNo()(Code) | | Returns the lineNo. |
getMemberName | public String getMemberName()(Code) | | Gets the member name for which this is an accessor.
|
isAbstract | public boolean isAbstract()(Code) | | |
isAccessor | public boolean isAccessor()(Code) | | Returns true if this is an accessor.
|
isCollectionType | public boolean isCollectionType()(Code) | | |
isMutator | public boolean isMutator()(Code) | | Returns true if this is a mutator.
|
isNative | public boolean isNative()(Code) | | |
needParameterUpdate | protected boolean needParameterUpdate()(Code) | | Returns whether the parameter list of this method needs to be
updated to the Describe model.
true if the model needs to be updated. |
setLineNo | public void setLineNo(int lineNo)(Code) | | Parameters: lineNo - The lineNo to set. |
setModifiers | public void setModifiers(Integer mods)(Code) | | Set the access modifiers for this method. Interface methods will be
forced abstract, regardless of the actual modifiers set (unless null).
Parameters: mods - An Integer of the modifiers as defined injava.lang.ref.Modifier . If null ,the modifiers will not be updated to the model. |
setReturnType | public void setReturnType(String value)(Code) | | Set the return type of the method.
Parameters: value - The return type. |
update | public MethodTransaction update(SymbolTransaction symTrans)(Code) | | Updates the method using the specified Symbol transaction.
Parameters: trans - The transaction that is to be used to update the correct symbol. The method transaction that was created to update the data member. |
|
|
|