String.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | accessibleTo(final ObjectType accessor)
Java Virtual Machine Specification edition 2, 5.4.4 Access Control |
| public boolean | Returns: true if both type objects refer to the same class.Overrides com. Indicates whether some other object is "equal to" this one. |
| public String | getClassName()
Overrides com. Returns: name of referenced class |
| public static ObjectType | Returns: a new instance.fully qualified class name, e.g. java.lang.String className)Constructs a new instance. |
| public int | Returns: a hash code value for the object.Overrides com. Returns a hash code value for this object. |
| public boolean | referencesClass()
Deprecated
(since 6.0) this method returns an inaccurate result if the class or interface referenced cannot be
found: use referencesClassExact() instead
If "this" doesn't reference a class, it references an interface or a non-existant entity. |
| public boolean | Returns: true if the type references a class, false if it references an interfaceReturn true if this type references a class, false if it references an interface. |
| public boolean | referencesInterface()
Deprecated
(since 6.0) this method returns an inaccurate result if the class or interface referenced cannot be
found: use referencesInterfaceExact() instead
If "this" doesn't reference an interface, it references a class or a non-existant entity. |
| public boolean | Returns: true if the type references an interface, false if it references a classReturn true if this type references an interface, false if it references a class. |
| public boolean |
| className | back to summary |
|---|---|
| private final String className | |
| ObjectType | back to summary |
|---|---|
| public ObjectType(final String className) Constructs a new instance. | |
| accessibleTo | back to summary |
|---|---|
| public boolean accessibleTo(final ObjectType accessor) throws ClassNotFoundException Java Virtual Machine Specification edition 2, 5.4.4 Access Control
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object type) Overrides com. 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.
| |
| getClassName | back to summary |
|---|---|
| public String getClassName() Overrides com. | |
| getInstance | back to summary |
|---|---|
| public static ObjectType getInstance(final String className) Constructs a new instance.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides com. 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
| |
| referencesClass | back to summary |
|---|---|
| public boolean referencesClass()
Deprecated (since 6.0) this method returns an inaccurate result if the class or interface referenced cannot be found: use referencesClassExact() instead If "this" doesn't reference a class, it references an interface or a non-existant entity.
| |
| referencesClassExact | back to summary |
|---|---|
| public boolean referencesClassExact() throws ClassNotFoundException Return true if this type references a class, false if it references an interface.
| |
| referencesInterface | back to summary |
|---|---|
| public boolean referencesInterface()
Deprecated (since 6.0) this method returns an inaccurate result if the class or interface referenced cannot be found: use referencesInterfaceExact() instead If "this" doesn't reference an interface, it references a class or a non-existant entity.
| |
| referencesInterfaceExact | back to summary |
|---|---|
| public boolean referencesInterfaceExact() throws ClassNotFoundException Return true if this type references an interface, false if it references a class.
| |
| subclassOf | back to summary |
|---|---|
| public boolean subclassOf(final ObjectType superclass) throws ClassNotFoundException Return true if this type is a subclass of given ObjectType.
| |