uk.co.badgersinfoil.metaas.dom
Interface ASCompilationUnit


public interface ASCompilationUnit

A 'compilation unit' represents an entire file of ActionScript code.

See Also:
ActionScriptProject.newClass(String), ActionScriptProject.newInterface(String)

Method Summary
 ASPackage getPackage()
          Returns the first ActionScript package-block declaired in this compilation-unit.
 java.lang.String getPackageName()
          Returns the name of the package, or null if the contents of the file are in the 'default' (top-level) package.
 ASType getType()
          Returns the type (ASClassType or ASInterfaceType) which this file defines.
 void setPackageName(java.lang.String name)
          Modifies the name of the package containing the code of this compilation-unit.
 

Method Detail

getPackageName

java.lang.String getPackageName()
Returns the name of the package, or null if the contents of the file are in the 'default' (top-level) package.


getType

ASType getType()
Returns the type (ASClassType or ASInterfaceType) which this file defines.


setPackageName

void setPackageName(java.lang.String name)
Modifies the name of the package containing the code of this compilation-unit. Passing null causes the resulting code to be in the 'default' (top-level) package.


getPackage

ASPackage getPackage()
Returns the first ActionScript package-block declaired in this compilation-unit.



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