|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object krieger.oclruntime.MethodBody
public class MethodBody
Represents a Java method body generated from an OCL operation contract.
Constructor Summary | |
---|---|
MethodBody(ClassifierFactory<java.lang.String> classifierFactory,
PropertyContainer<PropertyID,java.lang.String> translatedProperties,
java.util.Collection<PropertyID> extraProperties,
Constant<?> selfVar,
java.util.List<Constant<? extends Expression>> inParams,
Variable<? extends Expression> returnValue,
Problem problem,
QueryEvaluator<PropertyID> evaluator)
Constructs a new method body. |
Method Summary | |
---|---|
java.lang.Object |
call(java.lang.Object self,
java.lang.Object... arguments)
Calls this method body. |
static java.lang.Object |
call(java.lang.String resourceName,
java.lang.Object self,
java.lang.Class<?> returnType,
java.lang.Object... arguments)
Calls a method body stored in a resource. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MethodBody(ClassifierFactory<java.lang.String> classifierFactory, PropertyContainer<PropertyID,java.lang.String> translatedProperties, java.util.Collection<PropertyID> extraProperties, Constant<?> selfVar, java.util.List<Constant<? extends Expression>> inParams, Variable<? extends Expression> returnValue, Problem problem, QueryEvaluator<PropertyID> evaluator)
Method Detail |
---|
public static java.lang.Object call(java.lang.String resourceName, java.lang.Object self, java.lang.Class<?> returnType, java.lang.Object... arguments)
resourceName
- The name of the resource holding the serialized method body.self
- The object to call the method on.returnType
- A Class
representing the return type of the method.
public java.lang.Object call(java.lang.Object self, java.lang.Object... arguments)
self
- The object to call the method on.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |