|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IMethod
| Nested Class Summary | |
|---|---|
static interface |
IMethod.IArgument
|
static interface |
IMethod.IException
|
static class |
IMethod.OssjEntityMethodFlavor
This enum represents the "Flavors" that might be supported for a method. |
static class |
IMethod.OssjMethodProperty
This enum represents some key "Properties" of a method. |
| Nested classes/interfaces inherited from interface org.eclipse.tigerstripe.workbench.model.deprecated_.IModelComponent |
|---|
IModelComponent.EMultiplicity, IModelComponent.EVisibility |
| Field Summary | |
|---|---|
static java.util.List<IMethod> |
EMPTY_LIST
|
| Method Summary | |
|---|---|
void |
addArgument(IMethod.IArgument argument)
Add an argument to the method. |
void |
addException(IMethod.IException exception)
Add a single Exception to the method. |
void |
addReturnStereotypeInstance(IStereotypeInstance instance)
Add a single stereotype to the return type. |
IMethod |
clone()
Clone this method. |
java.util.Collection<IMethod.IArgument> |
getArguments()
Returns a collection of all of the arguments for this Method. |
IAbstractArtifact |
getContainingArtifact()
Returns the IArtifact that is the "container" for the Method. |
java.lang.String |
getDefaultReturnValue()
Returns the default return value for this method is it has been defined, null otherwise. |
ISessionArtifact.IEntityMethodFlavorDetails |
getEntityMethodFlavorDetails(IMethod.OssjEntityMethodFlavor flavor)
Returns the OSSJ flavor details for this method |
java.util.Collection<IMethod.IException> |
getExceptions()
Returns an array of all of the exceptions for this Method. |
java.lang.String |
getLabelString()
Returns a String containing the methodName+profile&returntype. |
java.lang.String |
getLabelString(boolean includeArgStereotypes)
Returns a String containing the methodName+profile&returntype. |
java.lang.String |
getMethodId()
Returns an identifier that uniquely identifies this method within the scope of its artifact. |
java.lang.String |
getReturnName()
Returns the name of the return for this method. |
int |
getReturnRefBy()
Returns an integer value indicating the reference type of the return. |
java.lang.String |
getReturnRefByString()
Returns an String value indicating the reference type of the return. |
IStereotypeInstance |
getReturnStereotypeInstanceByName(java.lang.String name)
Returns the named stereotype instances for the return type of the method. |
java.util.Collection<IStereotypeInstance> |
getReturnStereotypeInstances()
Returns all the stereotype instances for the return type of the method. |
IType |
getReturnType()
Returns the return type for this Method. |
boolean |
hasReturnStereotypeInstance(java.lang.String name)
Returns true if the method has the named return Stereotype |
boolean |
isAbstract()
Returns a boolean indicating whether this method is abstract or not. |
boolean |
isInstanceMethod()
Returns true if this Method is an instance method. |
boolean |
isIteratorReturn()
Returns a boolean indicating whether the return for this method is an iterator or not. |
boolean |
isOptional()
Returns a boolean indicating if this Method is optional or mandatory. |
boolean |
isOrdered()
Returns true if the return of this method contains ordered values (multiplicity > 1) |
boolean |
isUnique()
Returns true if the return of this method contains unique values (multiplicity > 1) |
boolean |
isVoid()
Returns true if the return of this Method is void. |
IMethod.IArgument |
makeArgument()
Make a blank Argument. |
ISessionArtifact.IEntityMethodFlavorDetails |
makeEntityMethodFlavorDetails()
Factory method for OSSJ Entity Details. |
IMethod.IException |
makeException()
Make a blank Exception. |
IType |
makeType()
Factory method for IType |
void |
removeArguments(java.util.Collection<IMethod.IArgument> arguments)
Remove arguments from the argument list. |
void |
removeExceptions(java.util.Collection<IMethod.IException> exception)
Remove exceptions from the method. |
void |
removeReturnStereotypeInstance(IStereotypeInstance instance)
Remove a single Stereotype instance from the method return. |
void |
removeReturnStereotypeInstances(java.util.Collection<IStereotypeInstance> instances)
Remove Stereotype instances from the method return. |
void |
setAbstract(boolean isAbstract)
sets whether this method is abstract or not |
void |
setArguments(java.util.Collection<IMethod.IArgument> arguments)
Set the arguments for the method. |
void |
setDefaultReturnValue(java.lang.String defaultReturnValue)
Sets the default return Value for this method. |
void |
setEntityMethodFlavorDetails(IMethod.OssjEntityMethodFlavor flavor,
ISessionArtifact.IEntityMethodFlavorDetails details)
Sets the OSSJ Entity flavor details for this method. |
void |
setExceptions(java.util.Collection<IMethod.IException> exceptions)
Set the exceptions for the method. |
void |
setInstanceMethod(boolean instance)
Sets the "InstanceMethod" flag. |
void |
setIteratorReturn(boolean iterate)
Sets the isIterator attribute of the method. |
void |
setOptional(boolean optional)
Set the optional attribute of this method. |
void |
setOrdered(boolean isOrdered)
Sets the ordered attribute for this method. |
void |
setReturnName(java.lang.String methodReturnName)
Sets the name of the return for this method. |
void |
setReturnRefBy(int refBy)
Set the reference type of the return. |
void |
setReturnType(IType returnType)
Sets the return type for this Method. |
void |
setUnique(boolean isUnique)
Sets the unique attribute for this method. |
void |
setVoid(boolean isVoid)
Sets the return type to void |
| Methods inherited from interface org.eclipse.tigerstripe.workbench.model.deprecated_.IModelComponent |
|---|
getComment, getContainedModelComponents, getContainingModelComponent, getLabel, getMetadata, getName, getProject, getVisibility, isInActiveFacet, setComment, setName, setVisibility, validate |
| Methods inherited from interface org.eclipse.tigerstripe.workbench.profile.stereotype.IStereotypeCapable |
|---|
addStereotypeInstance, getStereotypeInstanceByName, getStereotypeInstances, getStereotypeString, hasStereotypeInstance, removeStereotypeInstance, removeStereotypeInstances |
| Methods inherited from interface org.eclipse.tigerstripe.workbench.model.annotation.IAnnotationCapable |
|---|
getAnnotation, getAnnotations, getAnnotations, getAnnotations, hasAnnotations, hasAnnotations, hasAnnotations |
| Field Detail |
|---|
static final java.util.List<IMethod> EMPTY_LIST
| Method Detail |
|---|
IAbstractArtifact getContainingArtifact()
java.lang.String getLabelString()
java.lang.String getLabelString(boolean includeArgStereotypes)
includeArgStereotypes - - <java.lang.String getMethodId()
java.util.Collection<IMethod.IException> getExceptions()
void addException(IMethod.IException exception)
exception - to addvoid setExceptions(java.util.Collection<IMethod.IException> exceptions)
exceptions - void removeExceptions(java.util.Collection<IMethod.IException> exception)
exception - IMethod.IException makeException()
java.util.Collection<IMethod.IArgument> getArguments()
void addArgument(IMethod.IArgument argument)
argument - void setArguments(java.util.Collection<IMethod.IArgument> arguments)
arguments - void removeArguments(java.util.Collection<IMethod.IArgument> arguments)
arguments - IMethod.IArgument makeArgument()
boolean isVoid()
void setVoid(boolean isVoid)
java.lang.String getReturnName()
void setReturnName(java.lang.String methodReturnName)
IType getReturnType()
void setReturnType(IType returnType)
returnType - -
the return type for this method.IType makeType()
java.lang.String getDefaultReturnValue()
void setDefaultReturnValue(java.lang.String defaultReturnValue)
defaultReturnValue - java.util.Collection<IStereotypeInstance> getReturnStereotypeInstances()
boolean hasReturnStereotypeInstance(java.lang.String name)
name -
IStereotypeInstance getReturnStereotypeInstanceByName(java.lang.String name)
void addReturnStereotypeInstance(IStereotypeInstance instance)
instance - to add.void removeReturnStereotypeInstance(IStereotypeInstance instance)
instance - to removevoid removeReturnStereotypeInstances(java.util.Collection<IStereotypeInstance> instances)
instances - to removeboolean isOptional()
void setOptional(boolean optional)
optional - boolean isUnique()
void setUnique(boolean isUnique)
isUnique - boolean isOrdered()
void setOrdered(boolean isOrdered)
isOrdered - boolean isAbstract()
void setAbstract(boolean isAbstract)
isAbstract - -
boolean, true to set this method as abstractIMethod clone()
int getReturnRefBy()
void setReturnRefBy(int refBy)
refBy - java.lang.String getReturnRefByString()
void setInstanceMethod(boolean instance)
instance - boolean isInstanceMethod()
boolean isIteratorReturn()
void setIteratorReturn(boolean iterate)
iterate -
ISessionArtifact.IEntityMethodFlavorDetails getEntityMethodFlavorDetails(IMethod.OssjEntityMethodFlavor flavor)
throws TigerstripeException
flavor - -
OssjEntityMethodFlavor target flavor
TigerstripeException, - if method doesn't belong to Managed Entity
TigerstripeException
void setEntityMethodFlavorDetails(IMethod.OssjEntityMethodFlavor flavor,
ISessionArtifact.IEntityMethodFlavorDetails details)
throws TigerstripeException
flavor - -
the target flavordetails - -
the details for this target flavor
TigerstripeException - -
if this method doesn't belong to a ManagedEntityISessionArtifact.IEntityMethodFlavorDetails makeEntityMethodFlavorDetails()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||