Package ftbsc.lll.proxies.impl
Class PackageProxy
- java.lang.Object
-
- ftbsc.lll.proxies.AbstractProxy
-
- ftbsc.lll.proxies.QualifiableProxy
-
- ftbsc.lll.proxies.impl.PackageProxy
-
public class PackageProxy extends QualifiableProxy
A container for information about a package.- Since:
- 0.4.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ftbsc.lll.proxies.AbstractProxy
AbstractProxy.Builder<T extends AbstractProxy>
-
-
Field Summary
Fields Modifier and Type Field Description static PackageProxy
ROOT
ThePackageProxy
representing the root package.-
Fields inherited from class ftbsc.lll.proxies.QualifiableProxy
fullyQualifiedName, internalName
-
Fields inherited from class ftbsc.lll.proxies.AbstractProxy
descriptor, modifiers, name, parent, proxyType
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PackageProxy(PackageProxy parent, java.lang.String fqn)
The protected constructor, called only fromfrom(String)
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Indicates whether the given object is a proxy for the same element as this.protected static PackageProxy
from(java.lang.Package p)
Builds aPackageProxy
from a reflectivePackage
object.protected static PackageProxy
from(java.lang.String fqn)
Builds aPackageProxy
from its fully-qualified name.-
Methods inherited from class ftbsc.lll.proxies.QualifiableProxy
extractParentFromFQN, extractSimpleNameFromFQN
-
-
-
-
Field Detail
-
ROOT
public static final PackageProxy ROOT
ThePackageProxy
representing the root package.
-
-
Constructor Detail
-
PackageProxy
protected PackageProxy(PackageProxy parent, java.lang.String fqn)
The protected constructor, called only fromfrom(String)
.- Parameters:
parent
- thePackageProxy
representing the parentfqn
- the fully-qualified name of this package
-
-
Method Detail
-
from
protected static PackageProxy from(java.lang.String fqn)
Builds aPackageProxy
from its fully-qualified name.- Parameters:
fqn
- the fully-qualified name of the package- Returns:
- the built
PackageProxy
-
from
protected static PackageProxy from(java.lang.Package p)
Builds aPackageProxy
from a reflectivePackage
object.- Parameters:
p
- thePackage
object- Returns:
- the built
PackageProxy
-
equals
public boolean equals(java.lang.Object obj)
Indicates whether the given object is a proxy for the same element as this.- Overrides:
equals
in classQualifiableProxy
- Parameters:
obj
- the object to perform- Returns:
- true if it's equal
-
-