Modifier | Constructor and Description |
---|---|
protected |
JPackage(Package wrappedPackage,
ClasspathResolver resolver) |
protected |
JPackage(String name,
ClasspathResolver resolver) |
Modifier and Type | Method and Description |
---|---|
void |
acceptVisitor(IntrospectionVisitor visitor) |
boolean |
equals(Object obj) |
Package |
getActualPackage() |
<A extends Annotation> |
getAnnotation(Class<A> annotation) |
Set<JAnnotation<?>> |
getAnnotations() |
Annotation[] |
getAnnotationsForPackage() |
Set<JClass> |
getClasses() |
JElement |
getEnclosingElement() |
Set<JInterface> |
getInterfaces() |
static JPackage |
getJPackage(Package pkg,
ClasspathResolver resolver) |
static JPackage |
getJPackage(String name,
ClasspathResolver resolver) |
JPackage |
getParentPackage() |
int |
hashCode() |
String |
toString() |
findClassFile, getName, getResolver
protected JPackage(String name, ClasspathResolver resolver) throws ClasspathAccessException
ClasspathAccessException
protected JPackage(Package wrappedPackage, ClasspathResolver resolver)
public static JPackage getJPackage(String name, ClasspathResolver resolver) throws ClasspathAccessException
ClasspathAccessException
public static JPackage getJPackage(Package pkg, ClasspathResolver resolver) throws ClasspathAccessException
ClasspathAccessException
public Set<JClass> getClasses() throws ClasspathAccessException
ClasspathAccessException
public Set<JInterface> getInterfaces() throws ClasspathAccessException
ClasspathAccessException
public Set<JAnnotation<?>> getAnnotations() throws ClasspathAccessException
getAnnotations
in class JElement
ClasspathAccessException
public Package getActualPackage()
public <A extends Annotation> JAnnotation<A> getAnnotation(Class<A> annotation) throws ClasspathAccessException
getAnnotation
in class JElement
ClasspathAccessException
public JPackage getParentPackage() throws ClasspathAccessException
ClasspathAccessException
public Annotation[] getAnnotationsForPackage()
public void acceptVisitor(IntrospectionVisitor visitor) throws ClasspathAccessException
acceptVisitor
in class JElement
ClasspathAccessException
public JElement getEnclosingElement()
getEnclosingElement
in class JElement
Copyright © 2010–2018 Jadira Systems. All rights reserved.