|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.dynamicjava.symbol.FunctionWrapperClass
public class FunctionWrapperClass
DJClass implementation that treats a collection of in-scope local functions as a class containing equivalent static methods.
| Constructor Summary | |
|---|---|
FunctionWrapperClass(Access.Module accessModule,
Iterable<? extends LocalFunction> functions)
|
|
| 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 |
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)
We intentionally only allow two FunctionWrapperClasses to be equal if they are identical. |
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()
|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FunctionWrapperClass(Access.Module accessModule,
Iterable<? extends LocalFunction> functions)
| Method Detail |
|---|
public String packageName()
packageName in interface Access.ModulepackageName in interface DJClasspublic String fullName()
Class.getName())
fullName in interface DJClasspublic boolean isAnonymous()
isAnonymous in interface DJClasspublic String declaredName()
DJClass
declaredName in interface Access.LimiteddeclaredName in interface DJClasspublic boolean isInterface()
isInterface in interface DJClasspublic boolean isStatic()
isStatic in interface DJClasspublic boolean isAbstract()
isAbstract in interface DJClasspublic boolean isFinal()
isFinal in interface DJClasspublic Access accessibility()
Access.Limited
accessibility in interface Access.Limitedaccessibility in interface DJClasspublic Access.Module accessModule()
Access.Limited
accessModule in interface Access.Limitedpublic boolean hasRuntimeBindingsParams()
hasRuntimeBindingsParams in interface DJClasspublic DJClass declaringClass()
null if this is declared at a top-level or local scope
declaringClass in interface DJClasspublic Iterable<VariableType> declaredTypeParameters()
declaredTypeParameters in interface DJClasspublic Iterable<Type> declaredSupertypes()
declaredSupertypes in interface DJClasspublic Iterable<DJField> declaredFields()
declaredFields in interface DJClasspublic Iterable<DJConstructor> declaredConstructors()
declaredConstructors in interface DJClasspublic Iterable<DJMethod> declaredMethods()
declaredMethods in interface DJClasspublic Iterable<DJClass> declaredClasses()
declaredClasses in interface DJClasspublic Type immediateSuperclass()
immediateSuperclass in interface DJClasssuper in the context of this class, or
null if super is not definedpublic Class<?> load()
ClassLoader.loadClass(java.lang.String),
repeated invocations should produce the same object).
load in interface DJClasspublic boolean equals(Object o)
equals in interface DJClassequals in class Objectpublic int hashCode()
DJClass
hashCode in interface DJClasshashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||