org.apache.jdo.impl.enhancer.meta.model
Class EnhancerJavaModel
java.lang.Object
org.apache.jdo.impl.model.java.AbstractJavaModel
org.apache.jdo.impl.model.java.reflection.ReflectionJavaModel
org.apache.jdo.impl.enhancer.meta.model.EnhancerJavaModel
- All Implemented Interfaces:
- org.apache.jdo.model.java.JavaModel
- public class EnhancerJavaModel
- extends org.apache.jdo.impl.model.java.reflection.ReflectionJavaModel
Provides some basic Java type information based on JVM descriptors.
- Author:
- Michael Bouschen, Martin Zaun
Fields inherited from class org.apache.jdo.impl.model.java.reflection.ReflectionJavaModel |
declaringJavaModelFactory |
Fields inherited from class org.apache.jdo.impl.model.java.AbstractJavaModel |
children, jdoModel, parent, types |
Method Summary |
protected static void |
affirm(boolean condition,
java.lang.String msg)
|
java.io.InputStream |
getInputStreamForResource(java.lang.String resourceName)
Finds a resource with a given name. |
java.lang.String |
getTypeName(java.lang.String sig)
Returns the fully qualified name of the specified type representation. |
private static boolean |
isValidName(java.lang.String name,
char separator)
|
protected org.apache.jdo.model.java.JavaType |
newJavaTypeInstance(java.lang.Class clazz)
Creates a new JavaType instance for the specified Class object. |
Methods inherited from class org.apache.jdo.impl.model.java.reflection.ReflectionJavaModel |
getClassLoader, getDeclaringJavaModelFactory, getJavaType, getJavaType, getJavaTypeInternal, getJDOModel |
Methods inherited from class org.apache.jdo.impl.model.java.AbstractJavaModel |
getChildren, getParent, setJDOModel, setParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
locator
private final ResourceLocator locator
- The "package" jdo file.
EnhancerJavaModel
public EnhancerJavaModel(java.lang.ClassLoader classLoader,
ResourceLocator locator)
- Creates an instance.
getInputStreamForResource
public java.io.InputStream getInputStreamForResource(java.lang.String resourceName)
- Finds a resource with a given name. This method returns
null
if no resource with this name is found.
The name of a resource is a "/"-separated path name.
newJavaTypeInstance
protected org.apache.jdo.model.java.JavaType newJavaTypeInstance(java.lang.Class clazz)
- Creates a new JavaType instance for the specified Class object.
This implementation returns a EnhancerJavaType instance.
- Parameters:
clazz
- the Class instance representing the type
- Returns:
- a new JavaType instance
getTypeName
public java.lang.String getTypeName(java.lang.String sig)
- Returns the fully qualified name of the specified type representation.
isValidName
private static boolean isValidName(java.lang.String name,
char separator)
affirm
protected static final void affirm(boolean condition,
java.lang.String msg)