Package ftbsc.lll.proxies
Class QualifiableProxy
java.lang.Object
ftbsc.lll.proxies.AbstractProxy
ftbsc.lll.proxies.QualifiableProxy
- Direct Known Subclasses:
PackageProxy,TypeProxy
A proxy for elements who have a fully-qualified name.
- 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 StringThe fully-qualified name of the element represented by this proxy.final StringThe "internal name" (fully-qualified with slashes) of the element represented by this proxy.Fields inherited from class ftbsc.lll.proxies.AbstractProxy
descriptor, modifiers, name, parent, proxyType -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedQualifiableProxy(String descriptor, int modifiers, QualifiableProxy parent, String fullyQualifiedName, ProxyType proxyType) The protected constructor, should be called by all classes extending this in theirs. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether the given object is a proxy for the same element as this.protected static StringReturns aStringcontaining the FQN of the parent element to this, which may represent a package or class.protected static StringReturns aStringcontaining the simple name of the element.
-
Field Details
-
fullyQualifiedName
The fully-qualified name of the element represented by this proxy. -
internalName
The "internal name" (fully-qualified with slashes) of the element represented by this proxy.
-
-
Constructor Details
-
QualifiableProxy
protected QualifiableProxy(String descriptor, int modifiers, QualifiableProxy parent, String fullyQualifiedName, ProxyType proxyType) The protected constructor, should be called by all classes extending this in theirs.- Parameters:
descriptor- the descriptor for the elementmodifiers- the modifiers, as a packed intparent- theQualifiableProxyrepresenting the parent of this elementfullyQualifiedName- the FQN of the elementproxyType- theProxyTypebeing represented here
-
-
Method Details
-
extractParentFromFQN
Returns aStringcontaining the FQN of the parent element to this, which may represent a package or class.- Parameters:
fqn- the fully qualified name of the element- Returns:
- the parent, or null if the parent was the root element
-
extractSimpleNameFromFQN
Returns aStringcontaining the simple name of the element.- Parameters:
fqn- the fully qualified name of the element- Returns:
- the simple name
-
equals
Indicates whether the given object is a proxy for the same element as this.- Overrides:
equalsin classAbstractProxy- Parameters:
obj- the object to perform- Returns:
- true if it's equal
-