Package ftbsc.lll.proxies.impl
Class TypeProxy
java.lang.Object
ftbsc.lll.proxies.AbstractProxy
ftbsc.lll.proxies.QualifiableProxy
ftbsc.lll.proxies.impl.TypeProxy
A container for information about classes to be used
in ASM patching.
- Since:
- 0.4.0
-
Nested Class Summary
Nested classes/interfaces inherited from class ftbsc.lll.proxies.AbstractProxy
AbstractProxy.Builder<T extends AbstractProxy> -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanWhether this proxy represents a primitive.Fields inherited from class ftbsc.lll.proxies.QualifiableProxy
fullyQualifiedName, internalNameFields inherited from class ftbsc.lll.proxies.AbstractProxy
descriptor, modifiers, name, parent, proxyType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether the given object is a proxy for the same element as this.static TypeProxystatic TypeProxyBuilds aTypeProxygiven only the fully-qualified name and modifiers.static TypeProxyfrom(org.objectweb.asm.Type type, int modifiers) Builds aTypeProxyfrom aTypeand modifiers.Methods inherited from class ftbsc.lll.proxies.QualifiableProxy
extractParentFromFQN, extractSimpleNameFromFQN
-
Field Details
-
primitive
public final boolean primitiveWhether this proxy represents a primitive.
-
-
Constructor Details
-
TypeProxy
protected TypeProxy(String name, String descriptor, int modifiers, String parent, boolean primitive) Protected constructor, called only from the builders.- Parameters:
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 primitive
-
TypeProxy
protected TypeProxy(String name, String descriptor, int modifiers, TypeProxy containerClass, boolean primitive) Protected constructor, called only from the builders.- Parameters:
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 class
-
-
Method Details
-
from
Builds aTypeProxyfrom aTypeand modifiers.- Parameters:
type- theTyperepresenting this Classmodifiers- the modifiers of the class- Returns:
- the built
TypeProxy
-
from
Builds aTypeProxygiven only the fully-qualified name and modifiers. If present, parent classes will be assumed to havepublicas their only modifier.- Parameters:
fqn- the fully qualified name of the desired classarrayLevel- the array level for this typemodifiers- the access modifiers of the desired class- Returns:
- the built
TypeProxy
-
from
-
equals
Indicates whether the given object is a proxy for the same element as this.- Overrides:
equalsin classQualifiableProxy- Parameters:
obj- the object to perform- Returns:
- true if it's equal
-