ora.core.referenceAnalyser.common
Class FieldUtil

java.lang.Object
  extended by ora.core.referenceAnalyser.common.FieldUtil
All Implemented Interfaces:
java.io.Serializable

public class FieldUtil
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
 FollowMode followMode
           
 
Constructor Summary
FieldUtil(FollowMode fm)
           
 
Method Summary
 void clearCaches()
           
static boolean implementsInterface(java.lang.Class clazz, java.lang.Class interfaceClazz)
           
 boolean isClassWrappedOrPrimitive(java.lang.Class clazz)
          Determination whether the given class should be analysed deeply or is wrappedclass like Boolean, Character, String, Void, StringBuffer and Number or is primitive like int, double, float
 boolean isReference(java.lang.reflect.Field f, java.lang.Class clazz)
          Determination whether given field is valid references to analyse.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

followMode

public FollowMode followMode
Constructor Detail

FieldUtil

public FieldUtil(FollowMode fm)
Method Detail

implementsInterface

public static boolean implementsInterface(java.lang.Class clazz,
                                          java.lang.Class interfaceClazz)

isReference

public boolean isReference(java.lang.reflect.Field f,
                           java.lang.Class clazz)
Determination whether given field is valid references to analyse. Checks it by calling isClassWrappedOrPrimitive(Class clazz) and dependend on the fields modifier. Uses negative approach. Means only if negative condition is found it returns false else true.


isClassWrappedOrPrimitive

public boolean isClassWrappedOrPrimitive(java.lang.Class clazz)
Determination whether the given class should be analysed deeply or is wrappedclass like Boolean, Character, String, Void, StringBuffer and Number or is primitive like int, double, float


clearCaches

public void clearCaches()