Class QualifiedJClassRef
- java.lang.Object
-
- org.apache.xmlbeans.impl.jam.internal.classrefs.QualifiedJClassRef
-
- All Implemented Interfaces:
JClassRef
public class QualifiedJClassRef extends java.lang.Object implements JClassRef
Reference to a JClass by qualified name which is resolved lazily. Note that resolved references are not cached, which makes it more likely that a JClasses will become available for garbage collection. The performance hit here is probably not significant, but someday we might want to provide switch to enable caching of references.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JClassRef
create(java.lang.String qcname, JClassRefContext ctx)
Creates a new JClassRef for a qualified class or type name.static JClassRef
create(java.lang.String qcname, JamClassLoader cl)
Creates a new JClassRef for a qualified class or type name.static JClassRef
create(JClass clazz)
Creates a new JClassRef for a qualified class or type name.java.lang.String
getQualifiedName()
JClass
getRefClass()
java.lang.String
toString()
-
-
-
Method Detail
-
create
public static JClassRef create(JClass clazz)
Creates a new JClassRef for a qualified class or type name.
-
create
public static JClassRef create(java.lang.String qcname, JClassRefContext ctx)
Creates a new JClassRef for a qualified class or type name.
-
create
public static JClassRef create(java.lang.String qcname, JamClassLoader cl)
Creates a new JClassRef for a qualified class or type name.
-
getRefClass
public JClass getRefClass()
- Specified by:
getRefClass
in interfaceJClassRef
-
getQualifiedName
public java.lang.String getQualifiedName()
- Specified by:
getQualifiedName
in interfaceJClassRef
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-