|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.rice.cs.dynamicjava.symbol.JavaClass
public class JavaClass
DJClass implementation that wraps a Java reflection Class object. The Java5Class
version
should be used instead if the class object supports Java 5 methods like
Class.getTypeParameters()
.
Nested Class Summary | |
---|---|
protected class |
JavaClass.JavaConstructor
Non-static in order to determine the outer type. |
protected class |
JavaClass.JavaField
|
protected class |
JavaClass.JavaMethod
|
Field Summary | |
---|---|
protected Class<?> |
_c
|
Constructor Summary | |
---|---|
JavaClass(Class<?> c)
|
Method Summary | |
---|---|
Access |
accessibility()
The symbol's access level. |
Access.Module |
accessModule()
Get the module enclosing this symbol's declaration. |
Iterable<DJClass> |
declaredClasses()
|
Iterable<DJConstructor> |
declaredConstructors()
|
Iterable<DJField> |
declaredFields()
|
Iterable<DJMethod> |
declaredMethods()
|
String |
declaredName()
Produce the (unqualified) declared name of the given class |
Iterable<Type> |
declaredSupertypes()
List the declared supertypes of this class |
Iterable<VariableType> |
declaredTypeParameters()
List all type variables declared by this class (but not by its enclosing classes) |
DJClass |
declaringClass()
The class that declares this class, or null if this is declared at a top-level or local scope |
boolean |
equals(Object o)
Equality must be defined so that distinct DJClasses that wrap the same class are equal. |
String |
fullName()
Produces the binary name for the given class (as in Class.getName() ) |
int |
hashCode()
Equality must be defined so that distinct DJClasses that wrap the same class are equal. |
boolean |
hasRuntimeBindingsParams()
|
Type |
immediateSuperclass()
Return the type bound to super in the context of this class, or
null if super is not defined |
boolean |
isAbstract()
|
boolean |
isAnonymous()
|
boolean |
isFinal()
|
boolean |
isInterface()
|
boolean |
isStatic()
|
Class<?> |
load()
Produce the runtime representation of the class (as in ClassLoader.loadClass(java.lang.String) ,
repeated invocations should produce the same object). |
String |
packageName()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Class<?> _c
Constructor Detail |
---|
public JavaClass(Class<?> c)
Method Detail |
---|
public String packageName()
packageName
in interface Access.Module
packageName
in interface DJClass
public String fullName()
Class.getName()
)
fullName
in interface DJClass
public boolean isAnonymous()
isAnonymous
in interface DJClass
public String declaredName()
DJClass
declaredName
in interface Access.Limited
declaredName
in interface DJClass
public boolean isInterface()
isInterface
in interface DJClass
public boolean isStatic()
isStatic
in interface DJClass
public boolean isAbstract()
isAbstract
in interface DJClass
public boolean isFinal()
isFinal
in interface DJClass
public Access accessibility()
Access.Limited
accessibility
in interface Access.Limited
accessibility
in interface DJClass
public boolean hasRuntimeBindingsParams()
hasRuntimeBindingsParams
in interface DJClass
public Access.Module accessModule()
Access.Limited
accessModule
in interface Access.Limited
public DJClass declaringClass()
DJClass
null
if this is declared at a top-level or local scope
declaringClass
in interface DJClass
public Iterable<VariableType> declaredTypeParameters()
declaredTypeParameters
in interface DJClass
public Iterable<Type> declaredSupertypes()
declaredSupertypes
in interface DJClass
public Iterable<DJField> declaredFields()
declaredFields
in interface DJClass
public Iterable<DJConstructor> declaredConstructors()
declaredConstructors
in interface DJClass
public Iterable<DJMethod> declaredMethods()
declaredMethods
in interface DJClass
public Iterable<DJClass> declaredClasses()
declaredClasses
in interface DJClass
public Type immediateSuperclass()
super
in the context of this class, or
null
if super
is not defined
immediateSuperclass
in interface DJClass
super
in the context of this class, or
null
if super
is not definedpublic Class<?> load()
DJClass
ClassLoader.loadClass(java.lang.String)
,
repeated invocations should produce the same object).
load
in interface DJClass
public String toString()
toString
in class Object
public boolean equals(Object o)
DJClass
equals
in interface DJClass
equals
in class Object
public int hashCode()
DJClass
hashCode
in interface DJClass
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |