fr.umlv.corosol.component
Interface JFieldLookup

All Superinterfaces:
JObject, JVMComponent
All Known Implementing Classes:
DefaultJFieldLookup

public interface JFieldLookup
extends JVMComponent

A JFieldLookup object processes the research of a field in a hierarchy of classes.

Author:
DELERAY Christophe

Method Summary
 JField lookup(JClass clazz, java.lang.String name)
          Looks up the specified field from the specified class.
 JField superclassLookup(JClass clazz, java.lang.String name)
          Looks up the specified field from the super class of the specified class.
 JField superInterfacesLookup(JClass clazz, java.lang.String name)
          Looks up the specified field from the super interfaces of the specified class.
 
Methods inherited from interface fr.umlv.corosol.component.JVMComponent
configure, getComponentClass, replace
 

Method Detail

lookup

JField lookup(JClass clazz,
              java.lang.String name)
Looks up the specified field from the specified class. If the field was not found during the processing, null is returned.

Parameters:
clazz - the class from which the research starts
name - the name of the field to be looked up
Returns:
the field or null if the field was not found

superclassLookup

JField superclassLookup(JClass clazz,
                        java.lang.String name)
Looks up the specified field from the super class of the specified class. If the field was not found during the processing, null is returned.

Parameters:
clazz - the class from which the research starts
name - the name of the field to be looked up
Returns:
the field or null if the field was not found

superInterfacesLookup

JField superInterfacesLookup(JClass clazz,
                             java.lang.String name)
Looks up the specified field from the super interfaces of the specified class. If the field was not found during the processing, null is returned.

Parameters:
clazz - the class from which the research starts
name - the name of the field to be looked up
Returns:
the field or null if the field was not found