|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use OJClass | |
openjava.mop | Provides classes that are fundamental to the design of the OpenJava Meta-Object Protocols (MOP). |
openjava.ojc | |
openjava.ptree |
Uses of OJClass in openjava.mop |
Subclasses of OJClass in openjava.mop | |
class |
Metaclass
The class Metaclass is a metametaclass for metaclasses.
|
Fields in openjava.mop declared as OJClass | |
static OJClass |
OJSystem.BOOLEAN
class object for primitive type boolean |
static OJClass |
OJSystem.BYTE
class object for primitive type byte |
static OJClass |
OJSystem.CHAR
class object for primitive type char |
static OJClass |
OJSystem.SHORT
class object for primitive type short |
static OJClass |
OJSystem.INT
class object for primitive type int |
static OJClass |
OJSystem.LONG
class object for primitive type long |
static OJClass |
OJSystem.FLOAT
class object for primitive type float |
static OJClass |
OJSystem.DOUBLE
class object for primitive type double |
static OJClass |
OJSystem.VOID
class object for primitive type void |
static OJClass |
OJSystem.STRING
class object for java.lang.String |
static OJClass |
OJSystem.OBJECT
class object for java.lang.Object |
static OJClass |
OJSystem.NULLTYPE
class object for type of null literal |
static OJClass |
OJSystem.waited
internal use only |
static OJClass |
OJPrimitive.VOID
Deprecated. |
static OJClass |
OJPrimitive.BYTE
Deprecated. |
static OJClass |
OJPrimitive.CHAR
Deprecated. |
static OJClass |
OJPrimitive.INT
Deprecated. |
static OJClass |
OJPrimitive.LONG
Deprecated. |
static OJClass |
OJPrimitive.FLOAT
Deprecated. |
static OJClass |
OJPrimitive.DOUBLE
Deprecated. |
static OJClass |
OJPrimitive.STRING
Deprecated. |
static OJClass |
OJPrimitive.OBJECT
Deprecated. |
Methods in openjava.mop that return OJClass | |
OJClass |
Environment.lookupClass(java.lang.String name)
Looks a class object up. |
OJClass |
Environment.lookupBind(java.lang.String name)
Looks up a binded type of the given variable or field name. |
OJClass |
ClosedEnvironment.lookupClass(java.lang.String name)
|
OJClass |
ClosedEnvironment.lookupBind(java.lang.String name)
|
static OJClass[] |
OJSystem.addedClasses()
internal use only |
OJClass |
GlobalEnvironment.lookupClass(java.lang.String name)
Looks a class object up. |
OJClass |
GlobalEnvironment.lookupBind(java.lang.String name)
|
OJClass |
OJMethod.getDeclaringClass()
|
OJClass |
OJMethod.getReturnType()
|
OJClass[] |
OJMethod.getParameterTypes()
|
OJClass[] |
OJMethod.getExceptionTypes()
|
protected OJClass[] |
Signature.parameterTypes()
|
OJClass[] |
Signature.getParameterTypes()
|
static OJClass |
Signature.commonBaseType(OJClass a,
OJClass b)
|
static OJClass[] |
Signature.commonBaseTypes(OJClass[] a,
OJClass[] b)
|
OJClass |
OJMember.getDeclaringClass()
|
OJClass |
FileEnvironment.lookupClass(java.lang.String name)
Looks a class object up. |
OJClass |
FileEnvironment.lookupBind(java.lang.String name)
|
OJClass |
OJField.getDeclaringClass()
|
OJClass |
OJField.getType()
|
static OJClass |
OJClass.forName(java.lang.String name)
Returns the OJClass object associated with the class
with the given string name.
|
static OJClass |
OJClass.forClass(java.lang.Class javaClass)
Converts a OJClass object to an OJClass
object.
|
static OJClass |
OJClass.forParseTree(Environment env,
OJClass declaringClass,
ClassDeclaration ptree)
Converts ParseTree objects to an OJClass
object. |
static OJClass |
OJClass.forObject(java.lang.Object obj)
|
OJClass |
OJClass.primitiveWrapper()
Obtains the wrapper class if this class represents a primitive type. |
OJClass |
OJClass.unwrappedPrimitive()
Obtains the real type class if this class represents a primitive wrapper type. |
OJClass |
OJClass.getSuperclass()
Returns the OJClass representing the superclass of
the entity (class, interface, primitive type or void)
represented by this OJClass . |
OJClass[] |
OJClass.getInterfaces()
Determines the interfaces implemented by the class or interface represented by this object. |
OJClass |
OJClass.getComponentType()
Returns the OJClass representing the component type of an
array. |
OJClass |
OJClass.getDeclaringClass()
If the class or interface represented by this OJClass object is a member of another class,
returns the OJClass object representing the class
in which it was declared. |
OJClass[] |
OJClass.getAllClasses()
|
OJClass[] |
OJClass.getInheritedClasses()
|
OJClass[] |
OJClass.getInheritableClasses()
Deprecated. |
OJClass[] |
OJClass.getInheritableClasses(OJClass situation)
|
OJClass[] |
OJClass.getClasses()
Returns an array containing OJClass objects
representing all the public classes and interfaces
that are members of the class represented by this
OJClass object. |
OJClass[] |
OJClass.getClasses(OJClass situation)
Returns an array containing OJClass objects
representing all the classes and interfaces which are members
of the class represented by this OJClass object,
accessible from the situation represented by the given
OJClass object. |
OJClass[] |
OJClass.getDeclaredClasses()
Returns an array of OJClass objects reflecting all
the classes and interfaces declared as members of the class
represented by this OJClass object. |
OJClass |
OJClass.makeCopy(java.lang.String qname)
Generate a copy of this class object with the specified name. |
protected OJClass |
OJClass.setSuperclass(OJClass clazz)
|
protected OJClass[] |
OJClass.setInterfaces(OJClass[] classes)
|
protected OJClass |
OJClass.addClass(OJClass clazz)
|
protected OJClass |
OJClass.removeClass(OJClass clazz)
|
OJClass |
OJConstructor.getDeclaringClass()
|
OJClass[] |
OJConstructor.getParameterTypes()
|
OJClass[] |
OJConstructor.getExceptionTypes()
|
static OJClass[] |
Toolbox.overridesOn(OJClass[] declareds,
OJClass[] bases)
Generates an array of classes containing the declared classes and the based classes except the declared one. |
static OJClass[] |
Toolbox.removeThePrivates(OJClass[] src_classes)
Generates an array of classes containing the source classes except ones with private access modifier. |
static OJClass[] |
Toolbox.removeTheDefaults(OJClass[] src_classes)
Generates an array of classes containing the source classes except ones with private access modifier. |
static OJClass[] |
Toolbox.removeTheNonPublics(OJClass[] src_classes)
Generates an array of classes containing the source classes except ones with non-public access modifier; one of private, protected or package level access modifiers. |
static OJClass[] |
Toolbox.append(OJClass[] a,
OJClass[] b)
|
static OJClass |
Toolbox.forNameAnyway(Environment env,
java.lang.String name)
|
static OJClass[] |
Toolbox.arrayForNames(Environment env,
java.lang.String[] names)
|
OJClass |
ClassEnvironment.lookupClass(java.lang.String name)
|
OJClass |
ClassEnvironment.lookupBind(java.lang.String name)
|
Methods in openjava.mop with parameters of type OJClass | |
abstract void |
Environment.record(java.lang.String name,
OJClass clazz)
Records a class object. |
abstract void |
Environment.bindVariable(java.lang.String name,
OJClass clazz)
binds a name to the class type. |
void |
ClosedEnvironment.record(java.lang.String name,
OJClass clazz)
|
void |
ClosedEnvironment.bindVariable(java.lang.String name,
OJClass clazz)
binds a name to the class type. |
static void |
OJSystem.addNewClass(OJClass clazz)
Adds an new public class to be generated. |
void |
GlobalEnvironment.record(java.lang.String name,
OJClass clazz)
Records a class object. |
void |
GlobalEnvironment.bindVariable(java.lang.String name,
OJClass clazz)
binds a name to the class type. |
void |
OJMethod.setReturnType(OJClass type)
|
void |
OJMethod.setExceptionTypes(OJClass[] types)
|
void |
OJMethod.addExceptionType(OJClass type)
|
static OJClass |
Signature.commonBaseType(OJClass a,
OJClass b)
|
static OJClass[] |
Signature.commonBaseTypes(OJClass[] a,
OJClass[] b)
|
void |
FileEnvironment.record(java.lang.String name,
OJClass clazz)
Records a class object. |
void |
FileEnvironment.bindVariable(java.lang.String name,
OJClass clazz)
binds a name to the class type. |
void |
OJField.setDeclaringClass(OJClass parent)
|
void |
OJField.setType(OJClass type)
|
static OJClass |
OJClass.forParseTree(Environment env,
OJClass declaringClass,
ClassDeclaration ptree)
Converts ParseTree objects to an OJClass
object. |
boolean |
OJClass.isAssignableFrom(OJClass clazz)
Determines if the class or interface represented by this OJClass object is either the same as, or is a
superclass or superinterface of, the class or interface
represented by the specified OJClass parameter. |
boolean |
OJClass.isInSamePackage(OJClass c)
Determines if the specified class object is in the same package as this class object. |
OJClass[] |
OJClass.getInheritableClasses(OJClass situation)
|
OJField[] |
OJClass.getInheritableFields(OJClass situation)
|
OJMethod[] |
OJClass.getInheritableMethods(OJClass situation)
|
OJConstructor[] |
OJClass.getInheritableConstructors(OJClass situation)
|
OJMethod |
OJClass.getMethod(java.lang.String name,
OJClass[] parameterTypes)
Returns a OJMethod object that reflects the
specified public member method of the class or interface
represented by this OJClass object. |
OJConstructor |
OJClass.getConstructor(OJClass[] parameterTypes)
Returns a OJConstructor object that reflects the
specified public constructor of the class represented by this
OJClass object. |
OJClass[] |
OJClass.getClasses(OJClass situation)
Returns an array containing OJClass objects
representing all the classes and interfaces which are members
of the class represented by this OJClass object,
accessible from the situation represented by the given
OJClass object. |
OJField[] |
OJClass.getFields(OJClass situation)
Returns an array containing OJField objects
reflecting all the fields of the class or interface represented
by this OJClass object, accessible from the
situation represented by the given OJClass object.
|
OJMethod[] |
OJClass.getMethods(OJClass situation)
Returns an array containing OJMethod objects
reflecting all the member methods of the class or interface
represented by this OJClass object, accesible from
the situation represented by the given OJClass
object. |
OJConstructor[] |
OJClass.getConstructors(OJClass situation)
Returns an array containing OJConstructor objects
reflecting all the constructors of the class represented by
this OJClass object, accesible from the situation
represented by the given OJClass object. |
OJField |
OJClass.getField(java.lang.String name,
OJClass situation)
Returns a OJField object that reflects the
specified member field accesible from the situation represented
by the given OJClass object. |
OJMethod |
OJClass.getMethod(java.lang.String name,
OJClass[] parameterTypes,
OJClass situation)
Returns a OJMethod object that reflects the
specified member method accesible from the situation
represented by the given OJClass object. |
OJConstructor |
OJClass.getConstructor(OJClass[] parameterTypes,
OJClass situation)
Returns a OJConstructor object that reflects the
specified constructor accesible from the situation represented
by the given OJClass object. |
OJMethod |
OJClass.getAllMethod(java.lang.String name,
OJClass[] parameterTypes)
Deprecated. |
OJMethod |
OJClass.getAcceptableMethod(java.lang.String name,
OJClass[] parameterTypes,
OJClass situation)
Can be overriden |
OJConstructor |
OJClass.getAcceptableConstructor(OJClass[] parameterTypes,
OJClass situation)
Can be overriden |
OJMethod |
OJClass.getDeclaredMethod(java.lang.String name,
OJClass[] parameterTypes)
Returns a OJMethod object that reflects the
specified declared method of the class or interface represented
by this OJClass object. |
OJConstructor |
OJClass.getDeclaredConstructor(OJClass[] parameterTypes)
Returns a OJConstructor object that reflects the
specified constructor of the class or interface represented by
this OJClass object. |
void |
OJClass.waitTranslation(OJClass clazz)
Waits a callee-side translation on another class metaobject to be done. |
protected OJClass |
OJClass.setSuperclass(OJClass clazz)
|
protected OJClass[] |
OJClass.setInterfaces(OJClass[] classes)
|
protected void |
OJClass.addInterface(OJClass clazz)
|
protected OJClass |
OJClass.addClass(OJClass clazz)
|
protected OJClass |
OJClass.removeClass(OJClass clazz)
|
OJMethod |
OJClass.resolveException(NoSuchMemberException e,
java.lang.String name,
OJClass[] argtypes)
|
void |
OJConstructor.setExceptionTypes(OJClass[] types)
|
void |
OJConstructor.addExceptionType(OJClass type)
|
static OJClass[] |
Toolbox.overridesOn(OJClass[] declareds,
OJClass[] bases)
Generates an array of classes containing the declared classes and the based classes except the declared one. |
static OJClass[] |
Toolbox.removeThePrivates(OJClass[] src_classes)
Generates an array of classes containing the source classes except ones with private access modifier. |
static OJClass[] |
Toolbox.removeTheDefaults(OJClass[] src_classes)
Generates an array of classes containing the source classes except ones with private access modifier. |
static OJClass[] |
Toolbox.removeTheNonPublics(OJClass[] src_classes)
Generates an array of classes containing the source classes except ones with non-public access modifier; one of private, protected or package level access modifiers. |
static OJMethod |
Toolbox.pickupMethod(OJMethod[] src_methods,
java.lang.String name,
OJClass[] param_types)
Pick up a method with the specified signature in the source array of methods. |
static OJMethod |
Toolbox.pickupAcceptableMethod(OJMethod[] src_methods,
java.lang.String name,
OJClass[] param_types)
Pick up a method with the signature acceptable the specified signature in the source array of methods. |
static OJMethod[] |
Toolbox.pickupAcceptableMethods(OJMethod[] src_methods,
java.lang.String name,
OJClass[] param_types)
Generates an array of methods containing the methods with the signature acceptable the specified signature in the source array of methods. |
static OJConstructor |
Toolbox.pickupConstructor(OJConstructor[] src_constrs,
OJClass[] param_types)
Pick up a constructor with the specified signature in the source array of constructors. |
static OJConstructor |
Toolbox.pickupAcceptableConstructor(OJConstructor[] src_constrs,
OJClass[] param_types)
Pick up a constructor with the signature acceptable the specified signature in the source array of constructors. |
static OJConstructor[] |
Toolbox.pickupAcceptableConstructors(OJConstructor[] src_constrs,
OJClass[] param_types)
Generates an array of constructors containing the constructors with the specified parameter types in the source array of constructors. |
static OJMethod |
Toolbox.pickupMethodByParameterTypes(OJMethod[] src_methods,
OJClass[] param_types)
Picks up a method with the specified parameter types in the source array of methods. |
static OJMethod[] |
Toolbox.pickupAcceptableMethodsByParameterTypes(OJMethod[] src_methods,
OJClass[] param_types)
Generates an array of methods containing the methods with the parameter types acceptable specified parameter types in the source array of methods. |
static boolean |
Toolbox.isSame(OJClass[] accepter,
OJClass[] acceptee)
|
static boolean |
Toolbox.isAcceptable(OJClass[] accepter,
OJClass[] acceptee)
|
static boolean |
Toolbox.isAdaptableTo(OJClass[] adapter,
OJClass[] adaptee)
|
static OJClass[] |
Toolbox.append(OJClass[] a,
OJClass[] b)
|
static TypeName[] |
Toolbox.TNsForOJClasses(OJClass[] classes)
|
static ParameterList |
Toolbox.generateParameters(OJClass[] parameterTypes)
|
static ParameterList |
Toolbox.generateParameters(OJClass[] parameterTypes,
java.lang.String[] parameterNames)
|
Constructors in openjava.mop with parameters of type OJClass | |
OJMethod(OJClass declarer,
OJModifier modif,
OJClass returnType,
java.lang.String name,
OJClass[] parameterTypes,
OJClass[] exceptionTypes,
StatementList body)
Constructs a new OJMethod object.
|
|
OJMethod(OJClass declarer,
OJModifier modif,
OJClass returnType,
java.lang.String name,
OJClass[] parameterTypes,
java.lang.String[] parameterNames,
OJClass[] exceptionTypes,
StatementList body)
Constructs a new OJMethod object. |
|
OJMethod(OJClass declarer,
OJModifier modif,
OJClass returnType,
java.lang.String name,
ParameterList params,
OJClass[] exceptionTypes,
StatementList body)
Constructs a new OJMethod object. |
|
OJMethod(Environment env,
OJClass declarer,
MethodDeclaration d)
|
|
Signature(java.lang.String name,
OJClass[] paramtypes)
|
|
Signature(OJClass[] paramtypes)
|
|
Signature(OJClass clazz)
|
|
OJField(OJClass declarer,
OJModifier modif,
OJClass type,
java.lang.String name)
|
|
OJField(Environment env,
OJClass declarer,
FieldDeclaration d)
|
|
OJClass(Environment outer_env,
OJClass declarer,
ClassDeclaration ptree)
Generates a metaobject from source code. |
|
Metaclass(Environment outer_env,
OJClass declarer,
ClassDeclaration ptree)
|
|
OJConstructor(OJClass declarer,
OJModifier modif,
OJClass[] parameterTypes,
OJClass[] exceptionTypes,
ConstructorInvocation ci,
StatementList body)
|
|
OJConstructor(OJClass declarer,
OJModifier modif,
OJClass[] parameterTypes,
java.lang.String[] parameterNames,
OJClass[] exceptionTypes,
ConstructorInvocation ci,
StatementList body)
|
|
OJConstructor(OJClass declarer,
OJModifier modif,
ParameterList params,
OJClass[] exceptionTypes,
ConstructorInvocation ci,
StatementList body)
|
|
OJConstructor(Environment env,
OJClass declarer,
ConstructorDeclaration d)
|
|
ClassEnvironment(Environment e,
OJClass clazz)
|
Uses of OJClass in openjava.ojc |
Constructors in openjava.ojc with parameters of type OJClass | |
TranslatorThread(Environment env,
OJClass clazz)
|
Uses of OJClass in openjava.ptree |
Methods in openjava.ptree that return OJClass | |
OJClass |
SelfAccess.getType(Environment env)
|
OJClass |
AssignmentExpression.getType(Environment env)
|
OJClass |
Literal.getType(Environment env)
|
OJClass |
Expression.getType(Environment env)
|
OJClass |
UnaryExpression.getType(Environment env)
|
OJClass |
Variable.getType(Environment env)
|
OJClass |
ArrayAccess.getType(Environment env)
|
OJClass |
ArrayAllocationExpression.getType(Environment env)
|
OJClass |
ExpressionObject.getCachedType(Environment env)
dirty implementation |
abstract OJClass |
ExpressionObject.getType(Environment env,
boolean using_cache)
|
abstract OJClass |
ExpressionObject.getType(Environment env)
|
OJClass |
FieldAccess.getType(Environment env)
|
OJClass |
ConditionalExpression.getType(Environment env)
|
OJClass |
InstanceofExpression.getType(Environment env)
|
OJClass |
ClassLiteral.getType(Environment env)
|
OJClass |
MethodCall.getType(Environment env)
|
OJClass |
AllocationExpression.getType(Environment env)
|
OJClass |
CastExpression.getType(Environment env)
|
OJClass |
BinaryExpression.getType(Environment env)
|
Methods in openjava.ptree with parameters of type OJClass | |
static TypeName |
TypeName.forOJClass(OJClass clazz)
|
Constructors in openjava.ptree with parameters of type OJClass | |
ArrayAllocationExpression(OJClass type,
ExpressionList args)
|
|
ArrayAllocationExpression(OJClass type,
ExpressionList args,
ArrayInitializer ainit)
|
|
FieldAccess(OJClass clazz,
java.lang.String name)
An access to the specified static field of the type. |
|
ClassLiteral(OJClass type)
|
|
MethodCall(OJClass clazz,
java.lang.String name,
ExpressionList args)
|
|
AllocationExpression(OJClass type,
ExpressionList args)
|
|
CastExpression(OJClass type,
Expression expr)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |