|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.tuberlin.cs.cis.ocl.type.reflect.ReflOpTypeResolver
Reflects type informations on java classes representing the
ocl types. Therefore adjusts missing features of the java type
system.
Note:
The class itself needs major refactoring (but I do not have the time).
The possiblities to adapt the type system are rudimentar. The mapping
of ocl to java and vice versa is hardcoded. The type-interfaces must
therefore be seen as final. Changes can result in unintenial
runtime results.
Constructor Summary | |
ReflOpTypeResolver()
|
Method Summary | |
static java.lang.Class |
javaReflectionClass(Type t)
Determines the class describing the specified type. |
static java.lang.String |
oclOpName(java.lang.String javaName)
Maps a java method name to the name of the corresponding ocl operation. |
static Type |
oclType(java.lang.Class t)
Determines the type described by the specified class. |
static Property |
reflectOperation(Type type,
java.lang.String name,
Type[] params)
Reflects an operation on the specified type. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ReflOpTypeResolver()
Method Detail |
public static java.lang.String oclOpName(java.lang.String javaName)
javaName
- a method name.
public static Type oclType(java.lang.Class t)
t
- a class describing an OCL type.
public static java.lang.Class javaReflectionClass(Type t)
t
- an OCL type.
public static Property reflectOperation(Type type, java.lang.String name, Type[] params) throws UndefinedFeatureException
type
- the typename
- the name of the operationparams
- the parameters of the operation
UndefinedFeatureException
- if the operation
cannot be resolved on the specified type.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |