public final class MemberInfo extends java.lang.Object implements java.lang.Comparable<MemberInfo>
Type | Property and Description |
---|---|
boolean |
is
Returns true if this member is a property
|
Constructor and Description |
---|
MemberInfo(java.lang.reflect.Constructor<?> ci)
Initializes with constructor information.
|
MemberInfo(java.lang.reflect.Field fi)
Initializes with field information.
|
MemberInfo(java.lang.reflect.Method mi)
Initializes with method information.
|
MemberInfo(PropertyInfo pi)
Initializes with property information.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(MemberInfo other) |
java.lang.reflect.Constructor<?> |
getConstructorInfo() |
java.lang.Class<?> |
getDeclaringType()
Returns the class which declares this property
|
java.lang.reflect.Field |
getFieldInfo() |
java.lang.Class<?> |
getMemberType()
Returns the member type
|
java.lang.reflect.Method |
getMethodInfo() |
java.lang.String |
getName()
Returns the name of the property, e.g.
|
PropertyInfo |
getPropertyInfo() |
boolean |
isConstructor()
Returns true if this member is a constructor
|
boolean |
isField()
Returns true if this member is a field
|
boolean |
isMethod()
Returns true if this member is a method
|
boolean |
isProperty()
Returns true if this member is a property
|
java.lang.String |
toString() |
public MemberInfo(PropertyInfo pi)
java.lang.NullPointerException
- An argument is nullpublic MemberInfo(java.lang.reflect.Method mi)
java.lang.NullPointerException
- An argument is nullpublic MemberInfo(java.lang.reflect.Constructor<?> ci)
java.lang.NullPointerException
- An argument is nullpublic MemberInfo(java.lang.reflect.Field fi)
java.lang.NullPointerException
- An argument is nullpublic java.lang.String getName()
public java.lang.Class<?> getDeclaringType()
public java.lang.Class<?> getMemberType()
public boolean isField()
public boolean isProperty()
public boolean isMethod()
public boolean isConstructor()
public java.lang.reflect.Field getFieldInfo()
public java.lang.reflect.Method getMethodInfo()
public PropertyInfo getPropertyInfo()
public java.lang.reflect.Constructor<?> getConstructorInfo()
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(MemberInfo other)
compareTo
in interface java.lang.Comparable<MemberInfo>