|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.uni_paderborn.fujaba.basic.BasicIncrement
de.uni_paderborn.fujaba.asg.ASGElement
de.uni_paderborn.fujaba.uml.UMLIncrement
de.uni_paderborn.fujaba.uml.UMLDiagramItem
de.uni_paderborn.fujaba.uml.UMLDeclaration
de.uni_paderborn.fujaba.uml.UMLMethod
1 1 +---------------------+ UMLMethod ------------------------+ getFullMethodName() | UMLClass methods parent +---------------------+ +-----------+ 1 1 UMLClass | getName() +------------------------------ UMLMethod +-----------+ declares declaredInMethod 0..1 0..* UMLAttr -------------------------------------- UMLMethod accessedAttribute accessMethods 0..1 astRootNode 0..1 UMLMethod ------------------------------ ASTRootNode uMLMethod aSTRootNode
Nested Class Summary |
Nested classes inherited from class de.uni_paderborn.fujaba.asg.ASGElement |
ASGElement.SortByNameComparator |
Field Summary |
Fields inherited from class de.uni_paderborn.fujaba.basic.BasicIncrement |
dontUseAccessMethodsInThisClass |
Fields inherited from interface de.uni_paderborn.fujaba.metamodel.FMethod |
ABSTRACT_PROPERTY, DECLARES_PROPERTY, PARAM_PROPERTY, PARENT_PROPERTY, RESULT_TYPE_PROPERTY, STATIC_PROPERTY, STORY_DIAGRAM_PROPERTY |
Fields inherited from interface de.uni_paderborn.fujaba.metamodel.FDeclaration |
CODE_DISPLAY_LEVEL, DESIGN_DISPLAY_LEVEL, PACKAGE, PRIVATE, PROTECTED, PUBLIC, USERDEFINED, VISIBILITY_CHAR, VISIBILITY_PROPERTY, VISIBILITY_STRING |
Fields inherited from interface de.uni_paderborn.fujaba.metamodel.FDiagramItem |
REV_ADDITIONAL_ITEMS_PROPERTY, REV_ITEMS_PROPERTY, VIEW_DEFINITIONS_PROPERTY |
Fields inherited from interface de.uni_paderborn.fujaba.metamodel.FIncrement |
ASSERT_IN_UNIT_TEST_PROPERTY, COMMENT_PROPERTY, CONSTRAINTS_PROPERTY, STEREOTYPES_PROPERTY |
Fields inherited from interface de.uni_paderborn.fujaba.metamodel.FElement |
ANNOTATIONS_PROPERTY, DIAGRAMS_PROPERTY, ELEMENT_REFERENCES_PROPERTY, GENERATED_PROPERTY, NAME_PROPERTY, TEXT_PROPERTY |
Constructor Summary | |
UMLMethod()
Constructor for class UMLMethod |
|
UMLMethod(boolean coobraPersistent)
Constructor for class UMLMethod |
|
UMLMethod(java.lang.String name)
Constructor for class UMLMethod |
|
UMLMethod(java.lang.String name,
boolean umlStatic,
int visibility,
UMLConstraint constraint,
UMLType resultType,
UMLStartActivity revSpec)
Constructor for class UMLMethod |
|
UMLMethod(java.lang.String name,
boolean umlStatic,
int visibility,
UMLType resultType)
Constructor for class UMLMethod |
Method Summary | |
boolean |
addToDeclares(FClass obj)
Access method for an one to n association. |
protected void |
addToDeclares(KeyValuePair pair)
This method is needed only for loading FTreeMaps, do not use it in other cases. |
void |
addToParam(FParam newParam)
Access method for an one to n association. |
void |
addToParam(int index,
FParam newParam)
Access method for an one to n association. |
boolean |
addToThrowsTypes(UMLType value)
Access method for an one to n association. |
int |
compareTo(java.lang.Object obj)
No comment provided by developer, please add a comment to improve documentation. |
static java.lang.String |
constructFullMethodName(java.lang.String name,
java.util.Iterator iteratorOfParam)
No comment provided by developer, please add a comment to improve documentation. |
UMLActivityDiagram |
createStoryDiagram()
No comment provided by developer, please add a comment to improve documentation. |
java.util.Iterator |
entriesOfDeclares()
No comment provided by developer, please add a comment to improve documentation. |
UMLAttr |
getAccessedAttribute()
Get the accessedAttribute attribute of the UMLMethod object |
ASTRootNode |
getASTRootNode()
Returns the abstract syntax tree (AST) root node of the method If the method body isn't parsed yet, the method body will be parsed. |
FAttr |
getFAccessedAttribute()
Get the fAccessedAttribute attribute of the UMLMethod object |
FClass |
getFParent()
Get the fParent attribute of the UMLMethod object |
FType |
getFResultType()
Get the fResultType attribute of the UMLMethod object |
FElement |
getFRevSpec()
Get the fRevSpec attribute of the UMLMethod object |
UMLClass |
getFromDeclares(java.lang.String key)
Get the fromDeclares attribute of the UMLMethod object |
FClass |
getFromFDeclares(java.lang.String key)
Get the fromFDeclares attribute of the UMLMethod object |
FDiagram |
getFStoryDiagram()
Get the fStoryDiagram attribute of the UMLMethod object |
java.lang.String |
getFullMethodName()
This function assembles the full name of the method out of the name and the signature. |
java.lang.String |
getJava()
Get the java attribute of the UMLMethod object |
java.lang.String |
getMethodBody()
Get the methodBody of the UMLMethod |
java.lang.StringBuffer |
getMethodBodyText()
Deprecated. use getMethodBody() instead |
java.lang.String |
getMethodDecl()
Get the methodDecl attribute of the UMLMethod object |
java.lang.String |
getName()
Get the name attribute of the UMLMethod object |
UMLClass |
getParent()
Get the parent attribute of the UMLMethod object |
FElement |
getParentElement()
Query the logical parent of this element (e.g. package of a class, diagram of an object). |
java.lang.String |
getQualifiedMethodDecl()
Get the qualifiedMethodDecl attribute of the UMLMethod object |
UMLType |
getResultType()
Get the resultType attribute of the UMLMethod object |
UMLStartActivity |
getRevSpec()
Get the revSpec attribute of the UMLMethod object |
UMLActivityDiagram |
getStoryDiag()
Get the storyDiag attribute of the UMLMethod object |
UMLActivityDiagram |
getStoryDiagram()
Get the storyDiagram attribute of the UMLMethod object |
java.lang.String |
getText()
Get the text attribute of the UMLMethod object |
UMLAction |
getUMLAction()
Get the uMLAction attribute of the UMLMethod object |
UMLType |
getUMLType()
Get the uMLType attribute of the UMLMethod object |
static java.lang.String |
getVisibilityType(int visibility)
Get the visibilityType attribute of the UMLMethod class |
boolean |
hasInDeclares(FClass obj)
No comment provided by developer, please add a comment to improve documentation. |
boolean |
hasInParam(FParam newParam)
No comment provided by developer, please add a comment to improve documentation. |
boolean |
hasInThrowsTypes(UMLType value)
No comment provided by developer, please add a comment to improve documentation. |
boolean |
hasKeyInDeclares(java.lang.String key)
No comment provided by developer, please add a comment to improve documentation. |
boolean |
isAbstract()
Get the abstract attribute of the UMLMethod object |
boolean |
isConstructor()
Returns true, if the method is a constructor. |
boolean |
isFinal()
Get the final attribute of the UMLMethod object |
boolean |
isJavaConstructor()
Deprecated. use #isConstructor instead |
boolean |
isResultTypeIsPointer()
Get the value of resultTypeIsPointer. |
boolean |
isSignal()
Get the signal attribute of the UMLMethod object |
boolean |
isStatic()
Get the static attribute of the UMLMethod object |
boolean |
isSynchronized()
Get the synchronized attribute of the UMLMethod object |
boolean |
isUmlAbstract()
Wrapper to meet the style guides. |
boolean |
isUmlFinal()
Wrapper to meet the style guides. |
boolean |
isUmlNative()
Get the umlNative attribute of the UMLMethod object |
boolean |
isUmlSignal()
Wrapper to meet the style guides. |
boolean |
isUmlStatic()
Get the umlStatic attribute of the UMLMethod object |
boolean |
isUmlSynchronized()
Get the umlSynchronized attribute of the UMLMethod object |
java.util.Iterator |
iteratorOfDeclares()
No comment provided by developer, please add a comment to improve documentation. |
java.util.Iterator |
iteratorOfOverriddenMethods()
Find all methods in superclasses and -interfaces that have the same signature as this method. |
java.util.Iterator |
iteratorOfOverridingMethods()
Find all methods in subclasses and -interfaces that have the same signature as this method. |
java.util.Iterator |
iteratorOfParam()
No comment provided by developer, please add a comment to improve documentation. |
java.util.Iterator |
iteratorOfThrowsTypes()
No comment provided by developer, please add a comment to improve documentation. |
java.util.Iterator |
keysOfDeclares()
No comment provided by developer, please add a comment to improve documentation. |
void |
removeAllFromDeclares()
No comment provided by developer, please add a comment to improve documentation. |
void |
removeAllFromParam()
No comment provided by developer, please add a comment to improve documentation. |
void |
removeAllFromThrowsTypes()
No comment provided by developer, please add a comment to improve documentation. |
boolean |
removeFromDeclares(FClass obj)
No comment provided by developer, please add a comment to improve documentation. |
void |
removeFromParam(FParam newParam)
No comment provided by developer, please add a comment to improve documentation. |
boolean |
removeFromThrowsTypes(UMLType value)
No comment provided by developer, please add a comment to improve documentation. |
boolean |
removeKeyFromDeclares(java.lang.String key)
No comment provided by developer, please add a comment to improve documentation. |
void |
removeStoryDiagram()
No comment provided by developer, please add a comment to improve documentation. |
void |
removeYou()
Isolates the object so the garbage collector can remove it. |
ASGElement |
searchID(java.lang.String id)
Searches the ASG tree for a given id |
void |
setAbstract(boolean umlAbstract)
Sets the abstract attribute of the UMLMethod object |
boolean |
setAccessedAttribute(FAttr value)
Sets the accessedAttribute attribute of the UMLMethod object |
void |
setASTRootNode(ASTRootNode astRootNode)
Sets the abstract syntax tree (AST) root node of the method |
void |
setCutCopyPasteParent(FElement parent)
Hangs the current ASGElement into the ASG-tree. |
void |
setFinal(boolean umlFinal)
Sets the final attribute of the UMLMethod object |
void |
setMethodBody(java.lang.String methodBody)
Sets the methodBody of the UMLMethod |
void |
setMethodBody(java.lang.String methodBody,
boolean generated)
Sets the methodBody of the UMLMethod |
void |
setMethodBodyText(java.lang.StringBuffer buf)
Deprecated. use setMethodBody(String methodBody) instead |
void |
setName(java.lang.String name)
Sets the name attribute of the UMLMethod object |
void |
setParent(FClass parent)
Sets the parent attribute of the UMLMethod object |
void |
setPatternMethodBody(java.lang.String bodyText,
boolean generated)
Deprecated. use setMethodBody(String methodBody) instead |
void |
setQualifiedMethodDecl(java.lang.String str)
Sets the qualifiedMethodDecl attribute of the UMLMethod object |
void |
setResultType(FType value)
Sets the resultType attribute of the UMLMethod object |
void |
setResultTypeIsPointer(boolean resultTypeIsPointer)
Set the value of resultTypeIsPointer. |
void |
setRevSpec(FElement revSpec)
Sets the revSpec attribute of the UMLMethod object |
void |
setSignal(boolean umlSignal)
Sets the signal attribute of the UMLMethod object |
void |
setStatic(boolean umlStatic)
Sets the static attribute of the UMLMethod object |
void |
setStoryDiag(UMLActivityDiagram storyDiag)
Sets the revSpec attribute of the UMLMethod object |
void |
setSynchronized(boolean umlSynchronized)
Sets the synchronized attribute of the UMLMethod object |
void |
setUmlAbstract(boolean umlAbstract)
Wrapper for to meet the style guides. |
boolean |
setUMLAction(UMLAction value)
Sets the uMLAction attribute of the UMLMethod object |
void |
setUmlFinal(boolean umlFinal)
Wrapper to meet the style guides. |
void |
setUmlNative(boolean newUmlNative)
Sets the umlNative attribute of the UMLMethod object |
void |
setUmlSignal(boolean umlSignal)
Wrapper to meet the style guides. |
void |
setUmlStatic(boolean umlStatic)
Wrapper to meet the style guides. |
void |
setUmlSynchronized(boolean newUmlSynchronized)
Sets the umlSynchronized attribute of the UMLMethod object |
int |
sizeOfDeclares()
No comment provided by developer, please add a comment to improve documentation. |
int |
sizeOfParam()
No comment provided by developer, please add a comment to improve documentation. |
int |
sizeOfThrowsTypes()
No comment provided by developer, please add a comment to improve documentation. |
java.lang.String |
toString()
No comment provided by developer, please add a comment to improve documentation. |
Methods inherited from class de.uni_paderborn.fujaba.uml.UMLDeclaration |
getDisplayLevel, getFType, getVisibility, isParsed, setDisplayLevel, setParsed, setVisibility |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface de.uni_paderborn.fujaba.metamodel.FMethod |
getFType |
Methods inherited from interface de.uni_paderborn.fujaba.metamodel.FDeclaration |
getDisplayLevel, getVisibility, isParsed, setDisplayLevel, setVisibility |
Methods inherited from interface de.uni_paderborn.fujaba.metamodel.FIncrement |
addToConstraints, addToStereotypes, entriesOfStereotypes, getFComment, getFromFStereotypes, hasInConstraints, hasInStereotypes, hasKeyInStereotypes, isAssertInUnitTest, iteratorOfConstraints, iteratorOfStereotypes, keysOfStereotypes, removeAllFromConstraints, removeAllFromStereotypes, removeFromConstraints, removeFromStereotypes, removeKeyFromStereotypes, setAssertInUnitTest, setComment, sizeOfStereotypes |
Methods inherited from interface de.uni_paderborn.fujaba.basic.UniqueIdentifier |
getID |
Methods inherited from interface de.uni_paderborn.fujaba.fsa.unparse.LogicUnparseInterface |
getFSAInterface, getUnparseModuleName |
Methods inherited from interface de.upb.tools.pcs.PropertyChangeInterface |
getPropertyChangeSupport |
Methods inherited from interface de.upb.tools.pcs.PropertyChangeClient |
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener |
Methods inherited from interface de.tu_bs.coobra.ObjectChangeAware |
acknowledgeChange, getCoObRAId, getRepository, setCoObRAId, setRepository |
Methods inherited from interface de.uni_kassel.prop.InspectionAware |
isInspectableField, proposeFieldValues |
Constructor Detail |
public UMLMethod()
public UMLMethod(boolean coobraPersistent)
coobraPersistent
- No description providedpublic UMLMethod(java.lang.String name)
name
- No description providedpublic UMLMethod(java.lang.String name, boolean umlStatic, int visibility, UMLType resultType)
name
- No description providedumlStatic
- No description providedvisibility
- No description providedresultType
- No description providedpublic UMLMethod(java.lang.String name, boolean umlStatic, int visibility, UMLConstraint constraint, UMLType resultType, UMLStartActivity revSpec)
name
- No description providedumlStatic
- No description providedvisibility
- No description providedconstraint
- No description providedresultType
- No description providedrevSpec
- No description providedMethod Detail |
public java.lang.String toString()
UMLDiagramItem
toString
in class UMLDiagramItem
public java.lang.String getName()
getName
in interface FElement
getName
in class ASGElement
public void setName(java.lang.String name)
setName
in interface FElement
setName
in class ASGElement
name
- The new name valuepublic java.lang.String getFullMethodName()
getFullMethodName
in interface FMethod
public static java.lang.String constructFullMethodName(java.lang.String name, java.util.Iterator iteratorOfParam)
name
- No description providediteratorOfParam
- No description provided
public java.lang.String getText()
getText
in interface FElement
getText
in class ASGElement
public java.lang.String getQualifiedMethodDecl()
public void setQualifiedMethodDecl(java.lang.String str)
str
- The new qualifiedMethodDecl valuepublic java.lang.String getMethodDecl()
public java.lang.String getJava()
public boolean isStatic()
isStatic
in interface FMethod
public boolean isUmlStatic()
public void setStatic(boolean umlStatic)
setStatic
in interface FMethod
umlStatic
- The new static valuepublic void setUmlStatic(boolean umlStatic)
umlStatic
- new valuesetStatic(boolean)
public void setSignal(boolean umlSignal)
umlSignal
- The new signal valuepublic void setUmlSignal(boolean umlSignal)
umlSignal
- new valuesetSignal(boolean)
public boolean isSignal()
isSignal
in interface FMethod
public boolean isUmlSignal()
isSignal()
public void setFinal(boolean umlFinal)
setFinal
in interface FMethod
umlFinal
- The new final valuepublic void setUmlFinal(boolean umlFinal)
umlFinal
- new valuesetFinal(boolean)
public boolean isFinal()
isFinal
in interface FMethod
public boolean isUmlFinal()
isFinal()
public void setAbstract(boolean umlAbstract)
setAbstract
in interface FMethod
umlAbstract
- The new abstract valuepublic void setUmlAbstract(boolean umlAbstract)
umlAbstract
- The new umlAbstract valuesetAbstract(boolean)
public boolean isAbstract()
isAbstract
in interface FMethod
public boolean isUmlAbstract()
isAbstract()
public boolean isUmlNative()
isUmlNative
in interface FMethod
public void setUmlNative(boolean newUmlNative)
newUmlNative
- The new umlNative valuepublic void setSynchronized(boolean umlSynchronized)
umlSynchronized
- The new synchronized valuepublic boolean isSynchronized()
isSynchronized
in interface FMethod
public boolean isUmlSynchronized()
public void setUmlSynchronized(boolean newUmlSynchronized)
setUmlSynchronized
in interface FMethod
newUmlSynchronized
- The new umlSynchronized valuepublic UMLClass getParent()
public FClass getFParent()
getFParent
in interface FMethod
public void setParent(FClass parent)
setParent
in interface FMethod
parent
- The new parent valuepublic static java.lang.String getVisibilityType(int visibility)
visibility
- No description provided
public UMLType getResultType()
public FType getFResultType()
getFResultType
in interface FMethod
public UMLType getUMLType()
getUMLType
in class UMLDeclaration
public void setResultType(FType value)
setResultType
in interface FMethod
value
- The new resultType valuepublic boolean isResultTypeIsPointer()
isResultTypeIsPointer
in interface FMethod
public void setResultTypeIsPointer(boolean resultTypeIsPointer)
setResultTypeIsPointer
in interface FMethod
resultTypeIsPointer
- Value to assign to resultTypeIsPointer.public boolean isConstructor()
isConstructor
in interface FMethod
public boolean isJavaConstructor()
public boolean hasInDeclares(FClass obj)
hasInDeclares
in interface FMethod
obj
- No description provided
public boolean hasKeyInDeclares(java.lang.String key)
hasKeyInDeclares
in interface FMethod
key
- No description provided
public java.util.Iterator iteratorOfDeclares()
iteratorOfDeclares
in interface FMethod
public java.util.Iterator keysOfDeclares()
keysOfDeclares
in interface FMethod
public java.util.Iterator entriesOfDeclares()
entriesOfDeclares
in interface FMethod
public int sizeOfDeclares()
sizeOfDeclares
in interface FMethod
public UMLClass getFromDeclares(java.lang.String key)
key
- No description provided
public FClass getFromFDeclares(java.lang.String key)
getFromFDeclares
in interface FMethod
key
- No description provided
FMethod.getFromFDeclares(java.lang.String)
public boolean addToDeclares(FClass obj)
addToDeclares
in interface FMethod
obj
- The object added.
public boolean removeFromDeclares(FClass obj)
removeFromDeclares
in interface FMethod
obj
- No description provided
public boolean removeKeyFromDeclares(java.lang.String key)
removeKeyFromDeclares
in interface FMethod
key
- No description provided
public void removeAllFromDeclares()
removeAllFromDeclares
in interface FMethod
protected void addToDeclares(KeyValuePair pair)
pair
- The object added.public boolean hasInParam(FParam newParam)
hasInParam
in interface FMethod
newParam
- No description provided
public int sizeOfParam()
sizeOfParam
in interface FMethod
public java.util.Iterator iteratorOfParam()
iteratorOfParam
in interface FMethod
public void addToParam(FParam newParam)
addToParam
in interface FMethod
newParam
- The object added.public void addToParam(int index, FParam newParam)
addToParam
in interface FMethod
index
- The object added.newParam
- The object added.public void removeFromParam(FParam newParam)
removeFromParam
in interface FMethod
newParam
- No description providedpublic final void removeAllFromParam()
removeAllFromParam
in interface FMethod
public UMLStartActivity getRevSpec()
public FElement getFRevSpec()
getFRevSpec
in interface FMethod
FMethod.getFRevSpec()
public void setRevSpec(FElement revSpec)
setRevSpec
in interface FMethod
revSpec
- The new revSpec valuepublic UMLActivityDiagram getStoryDiag()
public FDiagram getFStoryDiagram()
getFStoryDiagram
in interface FMethod
FMethod.getFStoryDiagram()
public void setStoryDiag(UMLActivityDiagram storyDiag)
storyDiag
- The new storyDiag valuepublic void setMethodBody(java.lang.String methodBody)
setMethodBody
in interface FMethod
methodBody
- The new methodBody valuepublic void setMethodBody(java.lang.String methodBody, boolean generated)
setMethodBody
in interface FMethod
methodBody
- The new methodBody valuegenerated
- The new methodBody valuepublic java.lang.String getMethodBody()
getMethodBody
in interface FMethod
public void setPatternMethodBody(java.lang.String bodyText, boolean generated)
setPatternMethodBody
in interface FMethod
bodyText
- the body textgenerated
- true if the body is auto generated (e.g. from the analyzer engines)public void setMethodBodyText(java.lang.StringBuffer buf)
buf
- The new methodBodyText valuepublic java.lang.StringBuffer getMethodBodyText()
public ASTRootNode getASTRootNode()
getASTRootNode
in interface FMethod
public void setASTRootNode(ASTRootNode astRootNode)
setASTRootNode
in interface FMethod
astRootNode
- The new AST root nodepublic void removeStoryDiagram()
public UMLActivityDiagram getStoryDiagram()
public boolean hasInThrowsTypes(UMLType value)
value
- No description provided
public java.util.Iterator iteratorOfThrowsTypes()
iteratorOfThrowsTypes
in interface FMethod
public int sizeOfThrowsTypes()
sizeOfThrowsTypes
in interface FMethod
public boolean addToThrowsTypes(UMLType value)
value
- The object added.
public boolean removeFromThrowsTypes(UMLType value)
value
- No description provided
public void removeAllFromThrowsTypes()
public void setCutCopyPasteParent(FElement parent)
setCutCopyPasteParent
in interface FElement
setCutCopyPasteParent
in class ASGElement
parent
- public boolean setAccessedAttribute(FAttr value)
setAccessedAttribute
in interface FMethod
value
- The new accessedAttribute value
public UMLAttr getAccessedAttribute()
public FAttr getFAccessedAttribute()
getFAccessedAttribute
in interface FMethod
public boolean setUMLAction(UMLAction value)
value
- The new uMLAction value
public UMLAction getUMLAction()
public void removeYou()
removeYou
in interface FElement
removeYou
in class UMLDeclaration
public FElement getParentElement()
getParentElement
in interface FElement
getParentElement
in class UMLDiagramItem
public ASGElement searchID(java.lang.String id)
searchID
in class ASGElement
id
- The id to search for.
public UMLActivityDiagram createStoryDiagram()
public java.util.Iterator iteratorOfOverriddenMethods()
public java.util.Iterator iteratorOfOverridingMethods()
public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
compareTo
in class BasicIncrement
obj
- No description provided
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |