public class PackageImpl extends AnnotatedElementImpl implements MPackage
Generic implementation of JPackage/InternalJPackage that is good enough for all samples, right now. This might change if we ever wrap a model which natively supports package-level annotation.
NO_ANNOTATION, NO_CLASS, NO_COMMENT, NO_CONSTRUCTOR, NO_FIELD, NO_METHOD, NO_NODE, NO_PACKAGE, NO_PARAMETER, NO_PROPERTY| Constructor and Description |
|---|
PackageImpl(ElementContext ctx,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(JVisitor visitor)
Accepts the given visitor.
|
void |
accept(MVisitor visitor) |
JClass[] |
getClasses()
Returns the classes in this package which were specified as part
of the JRoot construction.
|
MClass[] |
getMutableClasses() |
String |
getQualifiedName()
Returns a qualified name for this abstraction.
|
addAnnotationForProxy, addLiteralAnnotation, createComment, findOrCreateAnnotation, getAllJavadocTags, getAnnotation, getAnnotation, getAnnotationProxy, getAnnotations, getAnnotationValue, getComment, getEditableProxy, getMutableAnnotation, getMutableAnnotations, getMutableComment, removeAnnotation, removeCommentcompareTo, createSourcePosition, defaultName, equals, getArtifact, getClassLoader, getContext, getMutableSourcePosition, getParent, getSimpleName, getSourcePosition, hashCode, removeSourcePosition, setArtifact, setSimpleName, toStringaddLiteralAnnotation, createComment, findOrCreateAnnotation, getMutableAnnotation, getMutableAnnotations, getMutableComment, removeCommentcreateSourcePosition, getClassLoader, getMutableSourcePosition, removeSourcePosition, setArtifact, setSimpleNamegetAllJavadocTags, getAnnotation, getAnnotation, getAnnotationProxy, getAnnotations, getAnnotationValue, getCommentgetArtifact, getParent, getSimpleName, getSourcePosition, toStringpublic PackageImpl(ElementContext ctx, String name)
public String getQualifiedName()
JElementReturns a qualified name for this abstraction. The exact format of this name depends on the particular abstraction. Please refer to the documentation for each JElement subclass for a detailed description of the qualified name formats.
getQualifiedName in interface JElementpublic void accept(JVisitor visitor)
JElementAccepts the given visitor.
public JClass[] getClasses()
JPackagegetClasses in interface JPackagepublic MClass[] getMutableClasses()
getMutableClasses in interface MPackageCopyright © 2010 - 2020 Adobe. All Rights Reserved