Login | Register
My pages Projects Community openCollabNet

The Tigris site will receive a major upgrade the evening of Monday, December 1, beginning at 8:30 pm PST. Downtime is projected to be about ten hours. Further details in the announcement


jmt.codebase
Interface Reference

All Known Subinterfaces:
ArrayReference, ClassReference, FieldOrMethodReference, FieldReference, MethodReference

public interface Reference

Describes a reference. A reference is referring an object which may not be known at the moment the reference is created. The reference is used to seperate each analysed class, instance, field or method from concret Class, Interface, Field or Method instances.

Author:
Martin Kersten
See Also:
ClassReference, ArrayReference, FieldOrMethodReference, FieldReference, MethodReference, AbstractReference

Method Summary
 boolean isReferring()
          Returns true if the refernce refer to a specific object otherwise false.
 void set(java.lang.Object object)
          Sets the instance the reference refers to.
 

Method Detail

isReferring

public boolean isReferring()
Returns true if the refernce refer to a specific object otherwise false.

Use this method to check if the reference refers to a concret instance or to an unknown one.

Returns:
true if the reference refers to a concrete instance.
See Also:
set(java.lang.Object)

set

public void set(java.lang.Object object)
         throws java.lang.UnsupportedOperationException
Sets the instance the reference refers to. The object may only be set one time. Every additional time the set method is called it throws an UnsupportedOperationException.

Parameters:
object - The object that the reference refers to
Throws:
java.lang.UnsupportedOperationException - If the referred object was set before.
java.lang.NullPointerException - If object is null.
See Also:
isReferring()