|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gef.commands.Command
vocleditor.commands.CreateMethodCommand
public class CreateMethodCommand
Constructor Summary | |
---|---|
CreateMethodCommand()
The default constructor. |
Method Summary | |
---|---|
void |
execute()
Entry point for command execution. |
VOCLModel.Method |
getMethod()
Returns the method. |
VOCLModel.ClassifierRole |
getParent()
Returns the parent classifier role. |
void |
redo()
Redo command execution. |
void |
setCommandAttributes(java.lang.String name,
java.lang.String returnType,
VOCLModel.VariableDeclaration returnVariable,
java.util.List parameters)
Sets the command attributes. |
void |
setMethod(VOCLModel.Method method)
Sets the method. |
void |
setName(java.lang.String methodName)
Sets the name. |
void |
setParameters(java.util.List parameters)
Sets the list of parameters. |
void |
setParent(VOCLModel.ClassifierRole newParent)
Sets the parent classifier role. |
void |
setReturnType(java.lang.String returnType)
Sets the returnType. |
void |
setReturnVariable(VOCLModel.VariableDeclaration returnVariable)
Sets the return value. |
void |
undo()
Undo command execution. |
Methods inherited from class org.eclipse.gef.commands.Command |
---|
canExecute, canUndo, chain, dispose, getDebugLabel, getLabel, setDebugLabel, setLabel |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CreateMethodCommand()
Method Detail |
---|
public void execute()
execute
in class org.eclipse.gef.commands.Command
public void redo()
redo
in class org.eclipse.gef.commands.Command
public void undo()
undo
in class org.eclipse.gef.commands.Command
public void setMethod(VOCLModel.Method method)
method
- the methos to setpublic VOCLModel.Method getMethod()
public VOCLModel.ClassifierRole getParent()
public void setParent(VOCLModel.ClassifierRole newParent)
newParent
- the parent to setpublic void setName(java.lang.String methodName)
methodName
- the name to setpublic void setReturnType(java.lang.String returnType)
returnType
- the return type to setpublic void setReturnVariable(VOCLModel.VariableDeclaration returnVariable)
returnVariable
- the return value to setpublic void setParameters(java.util.List parameters)
parameters
- the list of the parameterspublic void setCommandAttributes(java.lang.String name, java.lang.String returnType, VOCLModel.VariableDeclaration returnVariable, java.util.List parameters)
name
- the methodreturnVariable
- the return variableparameters
- the parameter list
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |