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
Class ReferenceFactory
java.lang.Object
|
+--jmt.codebase.ReferenceFactory
- public final class ReferenceFactory
- extends java.lang.Object
A static factory providing methods to create instances of
the ClassReference, ArrayReference,
FieldReference or MethodReference
type.
- Author:
- Martin Kersten
- See Also:
Reference,
ClassReference,
ArrayReference,
FieldReference,
MethodReference
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReferenceFactory
public ReferenceFactory()
createClassRef
public static ClassReference createClassRef(CodeBase codebase,
ClassName name)
- Returns a new ClassReference instance referring to a class or interface
with the given name. If the name specifies an array a ArrayReference
instance will be returned.
- Parameters:
codebase - The codebase the class reference belongs toname - The name of the class or interface to refer to
- Returns:
- The ClassReference instance referring to the class or interface
with the given name.
createFieldRef
public static FieldReference createFieldRef(ClassReference classRef,
java.lang.String name)
- Returns a FieldReference instance referring to a field
described by the given name and owned by the referred class or
interface.
- Parameters:
classRef - The reference of the class or interface the field
belongs toname - The name of the field
- Returns:
- The FieldReference instance referring to the field
createMethodRef
public static MethodReference createMethodRef(ClassReference classRef,
java.lang.String name,
MethodParameters parameters)
- Returns a MethodReference instance referring to a methdo
described by the given name and the given parameter signature
and owned by the referred class or interface.
- Parameters:
name - The name of the methodparameters - The parameter signature of the method
- Returns:
- The MethodReference instance referring to the method