|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavafx.reflect.TypeRef
javafx.reflect.ClassRef
public abstract class ClassRef
A run-time representation of a JavaFX class.
Corresponds to java.lang.Class
.
Field Summary | |
---|---|
protected static int |
COMPOUND_CLASS
|
protected static int |
FX_CLASS
|
protected int |
modifiers
|
Constructor Summary | |
---|---|
protected |
ClassRef(ReflectionContext context,
int modifiers)
|
Method Summary | |
---|---|
abstract ObjectRef |
allocate()
Return raw uninitialized object. |
boolean |
equals(ClassRef other)
|
abstract AttributeRef |
getAttribute(java.lang.String name)
Get the attribute (field) of this class with a given name. |
java.util.List<AttributeRef> |
getAttributes(boolean all)
|
abstract MemberRef |
getMember(java.lang.String name,
TypeRef type)
Get a member with the matching name and type. |
java.util.List<MemberRef> |
getMembers(boolean all)
|
abstract void |
getMembers(MemberHandler handler,
boolean all)
|
abstract MethodRef |
getMethod(java.lang.String name,
TypeRef... argType)
Find the function that (best) matches the name and argument types. |
java.lang.String |
getName()
|
ReflectionContext |
getReflectionContect()
|
abstract java.util.List<ClassRef> |
getSuperClasses(boolean all)
Get list of super-classes. |
boolean |
isAssignableFrom(ClassRef cls)
|
boolean |
isCompoundClass()
|
boolean |
isJfxType()
|
ObjectRef |
newInstance()
Create a new initialized object. |
java.lang.String |
toString()
|
Methods inherited from class javafx.reflect.TypeRef |
---|
getSequenceType, isAssignableFrom |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int modifiers
protected static final int COMPOUND_CLASS
protected static final int FX_CLASS
Constructor Detail |
---|
protected ClassRef(ReflectionContext context, int modifiers)
Method Detail |
---|
public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(ClassRef other)
public abstract java.util.List<ClassRef> getSuperClasses(boolean all)
all
- if true include all ancestor classes (including this class).
public boolean isCompoundClass()
public boolean isJfxType()
isJfxType
in class TypeRef
public boolean isAssignableFrom(ClassRef cls)
public abstract void getMembers(MemberHandler handler, boolean all)
public java.util.List<MemberRef> getMembers(boolean all)
public java.util.List<AttributeRef> getAttributes(boolean all)
public ReflectionContext getReflectionContect()
public abstract ObjectRef allocate()
public ObjectRef newInstance()
allocate
+ObjectRef.initialize
.
public abstract MemberRef getMember(java.lang.String name, TypeRef type)
public abstract AttributeRef getAttribute(java.lang.String name)
public abstract MethodRef getMethod(java.lang.String name, TypeRef... argType)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |