|
RECODER 0.92 | |||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectrecoder.abstraction.Package
public class Package
A program model element representing packages.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface recoder.abstraction.ProgramModelElement |
|---|
ProgramModelElement.LexicalOrder |
| Field Summary |
|---|
| Fields inherited from interface recoder.abstraction.ProgramModelElement |
|---|
LEXICAL_ORDER |
| Fields inherited from interface recoder.bytecode.AccessFlags |
|---|
ABSTRACT, ANNOTATION, BRIDGE, ENUM, FINAL, INTERFACE, NATIVE, PRIVATE, PROTECTED, PUBLIC, STATIC, STRICT, SUPER, SYNCHRONIZED, SYNTHETIC, TRANSIENT, VARARGS, VOLATILE |
| Constructor Summary | |
|---|---|
Package(java.lang.String name,
ProgramModelInfo pmi)
Creates a new package with the given name, organized by the given program model info. |
|
| Method Summary | |
|---|---|
java.lang.String |
getBinaryName()
Returns the binary name. |
ClassTypeContainer |
getContainer()
Returns the enclosing package or class type, or method. |
java.lang.String |
getFullName()
Returns the name of this package. |
java.lang.String |
getName()
Returns the name of this package. |
Package |
getPackage()
Returns the enclosing package. |
java.util.List<? extends AnnotationUse> |
getPackageAnnotations()
Returns the list of RuntimeInvisibleAnnotations retrieved from package-info.class, or the list of AnnotationUseSpecification retrieved from package-info.java, respectively. |
ProgramModelInfo |
getProgramModelInfo()
Returns the instance that can retrieve information about this program model element. |
java.util.List<? extends ClassType> |
getTypes()
Returns the list of class types defined within this ontainer. |
void |
setProgramModelInfo(ProgramModelInfo service)
Sets the instance that can retrieve information about this program model element. |
void |
validate()
Check consistency and admissibility of a construct, e.g. cardinality of participants. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Package(java.lang.String name,
ProgramModelInfo pmi)
name - the name of the package.pmi - the program model info responsible for this package.| Method Detail |
|---|
public java.lang.String getName()
getName in interface NamedModelElementpublic java.lang.String getFullName()
getFullName in interface ProgramModelElementpublic java.lang.String getBinaryName()
ProgramModelElement
getBinaryName in interface ProgramModelElementpublic ProgramModelInfo getProgramModelInfo()
getProgramModelInfo in interface ProgramModelElementpublic void setProgramModelInfo(ProgramModelInfo service)
setProgramModelInfo in interface ProgramModelElementservice - the program model info for this element.public java.util.List<? extends ClassType> getTypes()
getTypes in interface ClassTypeContainerpublic java.util.List<? extends AnnotationUse> getPackageAnnotations()
null if neither file is present or no package annotations are specified.
public ClassTypeContainer getContainer()
getContainer in interface ClassTypeContainernull.public Package getPackage()
getPackage in interface ClassTypeContainernull.
public void validate()
throws ModelException
ModelElementrecoder.java.statement.If
has a boolean parameter as condition,
recoder.service.SemanticsChecker
validate in interface ModelElementModelExceptionSemanticsChecker
|
RECODER 0.92 | |||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||