public class TypeProxy extends QualifiableProxy
AbstractProxy.Builder<T extends AbstractProxy>| Modifier and Type | Field and Description |
|---|---|
boolean |
primitive
Whether this proxy represents a primitive.
|
fullyQualifiedName, internalNamedescriptor, modifiers, name, parent, proxyType| Modifier | Constructor and Description |
|---|---|
protected |
TypeProxy(java.lang.String name,
java.lang.String descriptor,
int modifiers,
java.lang.String parent,
boolean primitive)
Protected constructor, called only from the builders.
|
protected |
TypeProxy(java.lang.String name,
java.lang.String descriptor,
int modifiers,
TypeProxy containerClass,
boolean primitive)
Protected constructor, called only from the builders.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Indicates whether the given object is a proxy for the same element as this.
|
static TypeProxy |
from(java.lang.Class<?> clazz)
Builds a
TypeProxy from a Class object. |
static TypeProxy |
from(java.lang.String fqn,
int arrayLevel,
int modifiers)
Builds a
TypeProxy given only the fully-qualified name and modifiers. |
static TypeProxy |
from(org.objectweb.asm.Type type,
int modifiers)
Builds a
TypeProxy from a Type and modifiers. |
extractParentFromFQN, extractSimpleNameFromFQNprotected TypeProxy(java.lang.String name,
java.lang.String descriptor,
int modifiers,
java.lang.String parent,
boolean primitive)
name - the name of the classdescriptor - the descriptor of the classmodifiers - the modifiers of the classparent - the package containing this classprimitive - whether the proxy is a primitiveprotected TypeProxy(java.lang.String name,
java.lang.String descriptor,
int modifiers,
TypeProxy containerClass,
boolean primitive)
name - the name of the classdescriptor - the descriptor of the elementmodifiers - the modifiers of the classprimitive - whether the proxy is a primitivecontainerClass - the FQN of the parent class of the classpublic static TypeProxy from(org.objectweb.asm.Type type, int modifiers)
TypeProxy from a Type and modifiers.type - the Type representing this Classmodifiers - the modifiers of the classTypeProxypublic static TypeProxy from(java.lang.String fqn, int arrayLevel, int modifiers)
TypeProxy given only the fully-qualified name and modifiers.
If present, parent classes will be assumed to have public as their
only modifier.fqn - the fully qualified name of the desired classarrayLevel - the array level for this typemodifiers - the access modifiers of the desired classTypeProxypublic static TypeProxy from(java.lang.Class<?> clazz)
TypeProxy from a Class object.clazz - the Class object representing the target classTypeProxypublic boolean equals(java.lang.Object obj)
equals in class QualifiableProxyobj - the object to perform