fr.umlv.corosol.component.impl
Class DefaultJFieldLookup

java.lang.Object
  extended by fr.umlv.corosol.component.impl.AbstractJVMComponent
      extended by fr.umlv.corosol.component.impl.DefaultJFieldLookup
All Implemented Interfaces:
JFieldLookup, JObject, JVMComponent

public class DefaultJFieldLookup
extends AbstractJVMComponent
implements JFieldLookup

The default implementation of the JFieldLookup interface.

Author:
DELERAY Christophe

Constructor Summary
DefaultJFieldLookup()
          The default constructor.
 
Method Summary
 java.lang.Class getComponentClass()
          Returns the class object describing this component.
 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.
 java.lang.String toString()
          Returns a string representation of this field lookup.
 
Methods inherited from class fr.umlv.corosol.component.impl.AbstractJVMComponent
configure, replace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface fr.umlv.corosol.component.JVMComponent
configure, replace
 

Constructor Detail

DefaultJFieldLookup

public DefaultJFieldLookup()
The default constructor.

Method Detail

lookup

public 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.

Specified by:
lookup in interface JFieldLookup
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

public 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.

Specified by:
superclassLookup in interface JFieldLookup
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

public 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.

Specified by:
superInterfacesLookup in interface JFieldLookup
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

toString

public java.lang.String toString()
Returns a string representation of this field lookup.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of this field lookup

getComponentClass

public java.lang.Class getComponentClass()
Returns the class object describing this component.

Specified by:
getComponentClass in interface JVMComponent