public final class ObjectType extends ReferenceType
| Constructor and Description |
|---|
ObjectType(String class_name) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accessibleTo(ObjectType accessor)
Java Virtual Machine Specification edition 2, 5.4.4 Access Control
|
boolean |
equals(Object type) |
String |
getClassName() |
int |
hashCode() |
boolean |
referencesClass()
If "this" doesn't reference a class, it references an interface
or a non-existant entity.
|
boolean |
referencesInterface()
If "this" doesn't reference an interface, it references a class
or a non-existant entity.
|
boolean |
subclassOf(ObjectType superclass) |
firstCommonSuperclass, getFirstCommonSuperclass, isAssignmentCompatibleWith, isCastableTogetArgumentTypes, getMethodSignature, getReturnType, getSignature, getSignature, getSize, getType, getType, getType, toStringpublic ObjectType(String class_name)
class_name - fully qualified class name, e.g. java.lang.Stringpublic String getClassName()
public int hashCode()
public boolean equals(Object type)
public boolean referencesClass()
public boolean referencesInterface()
public boolean subclassOf(ObjectType superclass)
public boolean accessibleTo(ObjectType accessor)
Copyright © 2018–2021 mhoffrogge. All rights reserved.