net.java.rdf.sommer.util
Class ClassAnalysis
java.lang.Object
net.java.rdf.sommer.util.ClassAnalysis
public class ClassAnalysis
- extends java.lang.Object
Methods for analysing class elements
- Author:
- Henry Story
Method Summary |
static java.lang.Class |
collectionType(java.lang.reflect.Type type)
Given a Type take from a collection, find it's class |
static java.util.ArrayList<java.lang.reflect.Field> |
filterFields(java.lang.reflect.Field[] fields,
java.lang.Class<? extends java.lang.annotation.Annotation> ann)
|
static rdf[] |
filterRdfAnnotations(java.lang.annotation.Annotation[][] annots)
retrun all rdf annotations from the array of annotation arrays |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassAnalysis
public ClassAnalysis()
collectionType
public static java.lang.Class collectionType(java.lang.reflect.Type type)
- Given a Type take from a collection, find it's class
- Parameters:
type
-
- Returns:
filterRdfAnnotations
public static rdf[] filterRdfAnnotations(java.lang.annotation.Annotation[][] annots)
- retrun all rdf annotations from the array of annotation arrays
- Parameters:
annots
-
- Returns:
- an array of rdf annotations, in the same order. Array of some length
filterFields
public static java.util.ArrayList<java.lang.reflect.Field> filterFields(java.lang.reflect.Field[] fields,
java.lang.Class<? extends java.lang.annotation.Annotation> ann)