uk.co.badgersinfoil.metaas
Interface CompilationUnit


public interface CompilationUnit

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


Method Summary
 java.lang.String getPackage()
          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 setPackage(java.lang.String name)
          Modifies the name of the package containing the code of this compilation-unit.
 

Method Detail

getPackage

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


getType

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


setPackage

public void setPackage(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.