Dresden OCL Toolkit

tudresden.ocl.check.types
Interface ReflectionExtender

All Known Implementing Classes:
SourceReflectionExtender

public interface ReflectionExtender

Abstracts an extension of the ReflectionFacade. Makes additional type information available, which cannot be obtained from the reflection api.


Method Summary
 Class getElementType(Field f)
          Returns the element type of the given class attribute.
 Class getKeyType(Field f)
          Returns the key type of the given class attribute.
 

Method Detail

getElementType

public Class getElementType(Field f)
Returns the element type of the given class attribute. Makes sense for container attributes only, such as java.util.Collections. The implementer should search for additional information, which is not available through the reflection api. Returns null, if no additional information is available.


getKeyType

public Class getKeyType(Field f)
Returns the key type of the given class attribute. Makes sense for qualified container attributes only, such as java.util.Map. The implementer should search for additional information, which is not available through the reflection api. Returns null, if no additional information is available.


Dresden OCL Toolkit

Submit a bug
Developed at the Dresden University of Technology.
This software is published under the GNU Lesser General Public License.