org.ocltf.concretesyntax.impl
Class OperationDeclarationCSImpl

java.lang.Object
  extended byorg.ocltf.concretesyntax.impl.OperationDeclarationCSImpl
All Implemented Interfaces:
OperationCS

public class OperationDeclarationCSImpl
extends java.lang.Object
implements OperationCS

An implementation of the ocl OperationDeclaration facade.

Author:
Chad Brandon
See Also:
OperationCS

Constructor Summary
OperationDeclarationCSImpl(java.lang.String name, java.lang.String returnType, VariableDeclarationCS[] parameters)
          Constructs a new OperationDeclarationCSImpl
 
Method Summary
 java.lang.String getName()
          The declared operation name
 VariableDeclarationCS[] getParameters()
          Returns a VariableDeclaration array representing the arguments of the operation.
 java.lang.String getReturnType()
          The declared return type.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OperationDeclarationCSImpl

public OperationDeclarationCSImpl(java.lang.String name,
                                  java.lang.String returnType,
                                  VariableDeclarationCS[] parameters)
Constructs a new OperationDeclarationCSImpl

Parameters:
name - the name of the OperationCS
returnType - the returnType of the operation
parameters - the parameters of the operation.
Method Detail

getName

public java.lang.String getName()
Description copied from interface: OperationCS
The declared operation name

Specified by:
getName in interface OperationCS
Returns:
String the name of the operation.
See Also:
OperationCS.getName()

getReturnType

public java.lang.String getReturnType()
Description copied from interface: OperationCS
The declared return type.

Specified by:
getReturnType in interface OperationCS
Returns:
String the type of the operation .
See Also:
OperationCS.getReturnType()

getParameters

public VariableDeclarationCS[] getParameters()
Description copied from interface: OperationCS
Returns a VariableDeclaration array representing the arguments of the operation.

Specified by:
getParameters in interface OperationCS
Returns:
VariableDeclarationCS[] an array containing the declared arguments.
See Also:
OperationCS.getParameters()

toString

public java.lang.String toString()
See Also:
Object.toString()


Copyright © 2003-2004 Chad Brandon. All Rights Reserved.