uk.co.badgersinfoil.metaas.dom
Interface ASPackage


public interface ASPackage

A package-declaration block within an ActionScript compilation-unit.

See Also:
ASCompilationUnit.getPackage()

Method Summary
 void addImport(java.lang.String name)
          Adds an import statement to this package block.
 java.util.List findImports()
          Returns a list of strings specifying the names which are imported into this package by package-level import statements.
 java.lang.String getName()
          Return the name of this package-block, or null if no name is present.
 ASType getType()
          Returns a reference to the first ASClassType or ASInterfaceType in this ActionScript package.
 boolean removeImport(java.lang.String name)
          Removes an import statement from this package block.
 void setName(java.lang.String name)
          Sets the name of this package.
 

Method Detail

getName

java.lang.String getName()
Return the name of this package-block, or null if no name is present. For example, for this package block:
package foo.bar {
        // ...
 }
getName() will return the value "foo.bar".


setName

void setName(java.lang.String name)
Sets the name of this package. To remove the package name, set this value to null (not an empty string).


getType

ASType getType()
Returns a reference to the first ASClassType or ASInterfaceType in this ActionScript package.


findImports

java.util.List findImports()
Returns a list of strings specifying the names which are imported into this package by package-level import statements.


addImport

void addImport(java.lang.String name)
Adds an import statement to this package block.


removeImport

boolean removeImport(java.lang.String name)
Removes an import statement from this package block.



Copyright © 2006-2007 David Holroyd. All Rights Reserved.