| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private Set | |
| private Map | |
| private boolean | |
| private int | |
| private List | |
| private boolean | |
| private boolean | |
| private Map | |
| private int | |
| private String | |
| private Type | |
| private Type |
| Access | Constructor and Description |
|---|---|
| public | ClassInfoBase(int modifiers, Type thisType)
Construct a ClassInfoBase representing a class or interface. |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected void | |
| protected void | |
| private void | |
| private void | |
| public String | className()
Implements org. Return the class name of the class represented by this ClassInfo relative to pkgName(). |
| private synchronized void | |
| public Set | |
| public boolean | equals(Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public Map | fieldInfo()
Implements org. Return a map from field names to FieldInfo instances for every field defined in this class (not including super types). |
| public MethodInfo | findConstructorInfo(Signature sig)
Implements org. Find the MethodInfo (if any) for a Constructor with the given Signature in this ClassInfo. |
| public FieldInfo | findFieldInfo(String name)
Implements org. Find a field with the given name if one exists. |
| private MethodInfo | |
| public MethodInfo | findMethodInfo(String name, Signature sig)
Implements org. Find the method (if any) with the given name and Signature in this ClassInfo, or in any superType of this ClassInfo. |
| public synchronized int | |
| public List | impls()
Implements org. Return the list of Types of interfaces implemented by this class. |
| protected void | |
| protected void | |
| public boolean | isInterface()
Implements org. Return true iff this ClassInfo is an interface. |
| public boolean | isSubclass(ClassInfo info)
Implements org. Return true iff this is a subclass or subinterface of info. |
| public Map | methodInfoByName()
Implements org. Return methodInfo for all methods defined on this class. |
| public int | modifiers()
Implements org. Return the modifiers on this class as specified in java.lang.reflect.Modifier. |
| public String | name()
Implements org. Return the fully qualified class name for this ClassInfo. |
| public String | pkgName()
Implements org. Return the fully qualified package name containing the class represented by this ClassInfo. |
| public Type | superType()
Implements org. Return the Type of the supertype of this class. |
| public Type | thisType()
Implements org. Return the Type of the class represented by this ClassInfo. |
| public String |
| className | back to summary |
|---|---|
| private String className | |
| constructors | back to summary |
|---|---|
| private Set<MethodInfo> constructors | |
| fields | back to summary |
|---|---|
| private Map<String, FieldInfo> fields | |
| hashIsCached | back to summary |
|---|---|
| private boolean hashIsCached | |
| hashValue | back to summary |
|---|---|
| private int hashValue | |
| impls | back to summary |
|---|---|
| private List<Type> impls | |
| initComplete | back to summary |
|---|---|
| private boolean initComplete | |
| isInterface | back to summary |
|---|---|
| private boolean isInterface | |
| methodInfoByName | back to summary |
|---|---|
| private Map<String, Set<MethodInfo>> methodInfoByName | |
| modifiers | back to summary |
|---|---|
| private int modifiers | |
| pkgName | back to summary |
|---|---|
| private String pkgName | |
| superType | back to summary |
|---|---|
| private Type superType | |
| thisType | back to summary |
|---|---|
| private Type thisType | |
| ClassInfoBase | back to summary |
|---|---|
| public ClassInfoBase(int modifiers, Type thisType) Construct a ClassInfoBase representing a class or interface. | |
| addConstructorInfo | back to summary |
|---|---|
| protected void addConstructorInfo(MethodInfo cinfo) | |
| addFieldInfo | back to summary |
|---|---|
| protected void addFieldInfo(FieldInfo finfo) | |
| addMethodInfo | back to summary |
|---|---|
| protected void addMethodInfo(MethodInfo minfo) | |
| checkComplete | back to summary |
|---|---|
| private void checkComplete() | |
| checkReinitialize | back to summary |
|---|---|
| private void checkReinitialize() | |
| className | back to summary |
|---|---|
| public String className() Implements org. Doc from org. Return the class name of the class represented by this ClassInfo relative to pkgName(). | |
| clearHashCode | back to summary |
|---|---|
| private synchronized void clearHashCode() | |
| constructorInfo | back to summary |
|---|---|
| public Set Implements org. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| fieldInfo | back to summary |
|---|---|
| public Map Implements org. Doc from org. Return a map from field names to FieldInfo instances for every field defined in this class (not including super types). | |
| findConstructorInfo | back to summary |
|---|---|
| public MethodInfo findConstructorInfo(Signature sig) Implements org. Doc from org. Find the MethodInfo (if any) for a Constructor with the given Signature in this ClassInfo. | |
| findFieldInfo | back to summary |
|---|---|
| public FieldInfo findFieldInfo(String name) Implements org. Doc from org. Find a field with the given name if one exists. Searches this class and all super classes. | |
| findMethodInfo | back to summary |
|---|---|
| private MethodInfo findMethodInfo(Signature sig, Set<MethodInfo> minfos) | |
| findMethodInfo | back to summary |
|---|---|
| public MethodInfo findMethodInfo(String name, Signature sig) Implements org. Doc from org. Find the method (if any) with the given name and Signature in this ClassInfo, or in any superType of this ClassInfo. | |
| hashCode | back to summary |
|---|---|
| public synchronized int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| impls | back to summary |
|---|---|
| public List Implements org. Doc from org. Return the list of Types of interfaces implemented by this class. May be empty, but never null. | |
| initializeClass | back to summary |
|---|---|
| protected void initializeClass(Type thisType, Type superType, List<Type> impls) | |
| initializeInterface | back to summary |
|---|---|
| protected void initializeInterface(List<Type> exts) | |
| isInterface | back to summary |
|---|---|
| public boolean isInterface() Implements org. Doc from org. Return true iff this ClassInfo is an interface. | |
| isSubclass | back to summary |
|---|---|
| public boolean isSubclass(ClassInfo info) Implements org. Doc from org. Return true iff this is a subclass or subinterface of info. | |
| methodInfoByName | back to summary |
|---|---|
| public Map Implements org. Doc from org. Return methodInfo for all methods defined on this class. This does not include inherited methods. Here we return a map from method name to the set of MethodInfo instances for all methods with the same method name. This form is useful for handling method overload resolution. | |
| modifiers | back to summary |
|---|---|
| public int modifiers() Implements org. Doc from org. Return the modifiers on this class as specified in java.lang.reflect.Modifier. | |
| name | back to summary |
|---|---|
| public String name() Implements org. Doc from org. Return the fully qualified class name for this ClassInfo. | |
| pkgName | back to summary |
|---|---|
| public String pkgName() Implements org. Doc from org. Return the fully qualified package name containing the class represented by this ClassInfo. | |
| superType | back to summary |
|---|---|
| public Type superType() Implements org. Doc from org. Return the Type of the supertype of this class. | |
| thisType | back to summary |
|---|---|
| public Type thisType() Implements org. Doc from org. Return the Type of the class represented by this ClassInfo. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |