Java Doc for MethodInfo.java in  » IDE-Netbeans » uml » org » netbeans » modules » uml » integration » ide » events » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Netbeans » uml » org.netbeans.modules.uml.integration.ide.events 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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


Field Summary
final public static  intCCK_CONCURRENT
    
final public static  intCCK_GUARDED
    
final public static  intCCK_SEQUENTIAL
    
 StringmReturn
    

Constructor Summary
public  MethodInfo(ClassInfo container, int type)
     Initializes a new MethodInfo.
public  MethodInfo(ClassInfo container, IOperation op)
    

Method Summary
public  MemberInfogetAttribute()
    
public  StringgetCode()
    
public  StringgetCodeGenReturnType()
     Gets the return type of the method.
public  StringgetDefaultReturnValue()
    
protected  StringgetDisplayString(String fnName, MethodParameterInfo[] mpi)
    
public  StringgetFilename()
    
public  intgetLineNo()
    
public  StringgetMemberName()
     Gets the member name for which this is an accessor.
public  IntegergetModifiers()
    
public  IOperationgetOperation()
    
public  IProjectgetOwningProject()
    
protected  ETList<IParameter>getParameterCollection(IOperation op)
    
public  ArrayList<MethodParameterInfo>getParameterInfos()
    
public  IProjectgetProject()
    
public  ArrayList<String[]>getReferredCodeGenTypes()
    
public  MethodParameterInfogetReturnParameter()
    
public  booleanisAbstract()
    
public  booleanisAccessor()
     Returns true if this is an accessor.
public  booleanisCollectionType()
    
public  booleanisMutator()
     Returns true if this is a mutator.
public  booleanisNative()
    
protected  booleanneedParameterUpdate()
     Returns whether the parameter list of this method needs to be updated to the Describe model.
public  voidsetLineNo(int lineNo)
    
public  voidsetModifiers(Integer mods)
     Set the access modifiers for this method.
public  voidsetOperation(IOperation operation)
    
protected  voidsetOtherMethodInfo(ClassInfo container, IOperation op)
    
public  voidsetReturnParameter(MethodParameterInfo val)
    
public  voidsetReturnType(String value)
     Set the return type of the method.
public  voidupdate()
     Updates the method.
public  MethodTransactionupdate(SymbolTransaction symTrans)
     Updates the method using the specified Symbol transaction.
Parameters:
  trans - The transaction that is to be used to update the correct symbol.
protected  voidupdateParameters(MethodTransaction trans)
    

Field Detail
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)



mReturn
String mReturn(Code)




Constructor Detail
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



MethodInfo
public MethodInfo(ClassInfo container, IOperation op)(Code)




Method Detail
getAttribute
public MemberInfo getAttribute()(Code)



getCode
public String getCode()(Code)



getCodeGenReturnType
public String getCodeGenReturnType()(Code)
Gets the return type of the method. The return type.



getDefaultReturnValue
public String getDefaultReturnValue()(Code)



getDisplayString
protected String getDisplayString(String fnName, MethodParameterInfo[] mpi)(Code)



getFilename
public String getFilename()(Code)



getLineNo
public int getLineNo()(Code)
Returns the lineNo.



getMemberName
public String getMemberName()(Code)
Gets the member name for which this is an accessor.



getModifiers
public Integer getModifiers()(Code)



getOperation
public IOperation getOperation()(Code)



getOwningProject
public IProject getOwningProject()(Code)



getParameterCollection
protected ETList<IParameter> getParameterCollection(IOperation op)(Code)



getParameterInfos
public ArrayList<MethodParameterInfo> getParameterInfos()(Code)



getProject
public IProject getProject()(Code)



getReferredCodeGenTypes
public ArrayList<String[]> getReferredCodeGenTypes()(Code)



getReturnParameter
public MethodParameterInfo getReturnParameter()(Code)



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.



setOperation
public void setOperation(IOperation operation)(Code)



setOtherMethodInfo
protected void setOtherMethodInfo(ClassInfo container, IOperation op)(Code)



setReturnParameter
public void setReturnParameter(MethodParameterInfo val)(Code)



setReturnType
public void setReturnType(String value)(Code)
Set the return type of the method.
Parameters:
  value - The return type.



update
public void update()(Code)
Updates the method. A Class Transaction is began and MethodInfo.update(GDSymbolTransaction trans) update is called.



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.



updateParameters
protected void updateParameters(MethodTransaction trans)(Code)



Methods inherited from org.netbeans.modules.uml.integration.ide.events.ConstructorInfo
public void addException(String value)(Code)(Java Doc)
public void addNewParameter(int index, MethodParameterInfo param) throws IndexOutOfBoundsException(Code)(Java Doc)
public void addParameter(int index, MethodParameterInfo param) throws IndexOutOfBoundsException(Code)(Java Doc)
public void changeParameter(IParameter orig, IParameter newp)(Code)(Java Doc)
protected void checkSanity()(Code)(Java Doc)
public void clearNewParameters()(Code)(Java Doc)
public void clearParameters()(Code)(Java Doc)
public Object clone()(Code)(Java Doc)
protected void deepClone(LinkedList l)(Code)(Java Doc)
public String getCode()(Code)(Java Doc)
public ClassInfo getContainingClass()(Code)(Java Doc)
protected IDerivationClassifier getDerivationClassifer(IElement owner, String name)(Code)(Java Doc)
protected String getDisplayString(String fnName, MethodParameterInfo[] mpi)(Code)(Java Doc)
public String[] getExceptions()(Code)(Java Doc)
public MethodParameterInfo[] getNewParameters()(Code)(Java Doc)
public MethodParameterInfo getNewParameters(int index) throws IndexOutOfBoundsException(Code)(Java Doc)
public MethodParameterInfo getParameter(IParameter param)(Code)(Java Doc)
protected ETList<IParameter> getParameterCollection(IOperation op)(Code)(Java Doc)
public MethodParameterInfo[] getParameters()(Code)(Java Doc)
public MethodParameterInfo getParameters(int index) throws IndexOutOfBoundsException(Code)(Java Doc)
public String getSource()(Code)(Java Doc)
protected boolean needParameterUpdate()(Code)(Java Doc)
public void removeException(String exception)(Code)(Java Doc)
public void removeNewParameter(int index)(Code)(Java Doc)
public void removeParameter(int index)(Code)(Java Doc)
public void removeParameter(IParameter param)(Code)(Java Doc)
public void setContainingClass(ClassInfo container)(Code)(Java Doc)
public void setExceptions(String[] value)(Code)(Java Doc)
public void setNewParameters(MethodParameterInfo[] params)(Code)(Java Doc)
public void setParameters(MethodParameterInfo[] params)(Code)(Java Doc)
public void setSource(String src)(Code)(Java Doc)
public void syncFields()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public void update()(Code)(Java Doc)
public MethodTransaction update(SymbolTransaction trans)(Code)(Java Doc)
protected void updateParameters(MethodTransaction trans)(Code)(Java Doc)

Fields inherited from org.netbeans.modules.uml.integration.ide.events.ElementInfo
final public static int CREATE(Code)(Java Doc)
final public static int DELETE(Code)(Java Doc)
final public static int MODIFY(Code)(Java Doc)
protected Integer mModifiers(Code)(Java Doc)

Methods inherited from org.netbeans.modules.uml.integration.ide.events.ElementInfo
protected void assertIsIdentifier(String name) throws InvalidIdentifierException(Code)(Java Doc)
public Object clone()(Code)(Java Doc)
public String getChangeName()(Code)(Java Doc)
public int getChangeType()(Code)(Java Doc)
abstract public String getCode()(Code)(Java Doc)
public String getComment()(Code)(Java Doc)
public String getFilename()(Code)(Java Doc)
public String getMarkerID()(Code)(Java Doc)
public Integer getModifiers()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public String getNewName()(Code)(Java Doc)
public IProject getOwningProject()(Code)(Java Doc)
public IProject getProject()(Code)(Java Doc)
public boolean isCommentSet()(Code)(Java Doc)
public static boolean isIdentifier(String name)(Code)(Java Doc)
public boolean matches(ElementInfo el)(Code)(Java Doc)
public void setChangeType(int value)(Code)(Java Doc)
public void setComment(String value)(Code)(Java Doc)
public void setModifiers(Integer mod)(Code)(Java Doc)
public void setName(String value)(Code)(Java Doc)
public void setNewName(String value)(Code)(Java Doc)
public void syncFields()(Code)(Java Doc)
abstract public void update()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.