org.mindswap.ocl.impl
Class OCLStaticMethodImpl

java.lang.Object
  extended byResourceImpl
      extended byorg.mindswap.ocl.impl.OCLResourceImpl
          extended byorg.mindswap.ocl.impl.OCLMethodImpl
              extended byorg.mindswap.ocl.impl.OCLStaticMethodImpl
All Implemented Interfaces:
OCLMethod, OCLStaticMethod

public class OCLStaticMethodImpl
extends OCLMethodImpl
implements OCLStaticMethod

Title:

Description: Implementation of the OCL Static Method interface

Copyright: Copyright (c) 2005

Company: Mindswap (http://www.mindswap.org)

See Also:
Serialized Form

Field Summary
static Implementation factory
           
 
Constructor Summary
OCLStaticMethodImpl(Node n, EnhGraph eg)
           
 
Method Summary
 Literal getHasClass()
          Return the value of the has class property for this method.
 java.lang.Object invoke()
          Invokes this method and returns its result
 java.lang.Object invoke(java.lang.Object theObject)
          Invokes this method on the specifed object and returns the result
 void setHasClass(Literal theHasClass)
          Sets the has class value for this method.
 
Methods inherited from class org.mindswap.ocl.impl.OCLMethodImpl
addParameter, getMethodName, getOnObject, getParameters, removeParameter, setMethodName
 
Methods inherited from class org.mindswap.ocl.impl.OCLResourceImpl
mustBeValidModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.mindswap.ocl.OCLMethod
addParameter, getMethodName, getOnObject, getParameters, removeParameter, setMethodName
 

Field Detail

factory

public static Implementation factory
Constructor Detail

OCLStaticMethodImpl

public OCLStaticMethodImpl(Node n,
                           EnhGraph eg)
Method Detail

getHasClass

public Literal getHasClass()
Description copied from interface: OCLStaticMethod
Return the value of the has class property for this method. This is the class the static method belongs to.

Specified by:
getHasClass in interface OCLStaticMethod
Returns:
Literal the has class value for this method

setHasClass

public void setHasClass(Literal theHasClass)
Description copied from interface: OCLStaticMethod
Sets the has class value for this method. This is the class the static method belongs to.

Specified by:
setHasClass in interface OCLStaticMethod
Parameters:
theHasClass - Literal the new has class

invoke

public java.lang.Object invoke()
                        throws java.lang.IllegalArgumentException,
                               java.lang.NoSuchMethodException,
                               java.lang.IllegalAccessException,
                               java.lang.reflect.InvocationTargetException
Description copied from interface: OCLMethod
Invokes this method and returns its result

Specified by:
invoke in interface OCLMethod
Overrides:
invoke in class OCLMethodImpl
Throws:
java.lang.IllegalArgumentException
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException

invoke

public java.lang.Object invoke(java.lang.Object theObject)
                        throws java.lang.IllegalArgumentException,
                               java.lang.NoSuchMethodException,
                               java.lang.IllegalAccessException,
                               java.lang.reflect.InvocationTargetException
Description copied from interface: OCLMethod
Invokes this method on the specifed object and returns the result

Specified by:
invoke in interface OCLMethod
Overrides:
invoke in class OCLMethodImpl
Throws:
java.lang.IllegalArgumentException
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException