uk.co.badgersinfoil.metaas
Class ASSourceFactory

java.lang.Object
  extended by uk.co.badgersinfoil.metaas.ASSourceFactory

public class ASSourceFactory
extends java.lang.Object

Core class providing access to metaas functionality.


Constructor Summary
ASSourceFactory()
           
 
Method Summary
 ASBlock newBlock()
           
 CompilationUnit newClass(java.lang.String qualifiedClassName)
          Creates a new CompilationUnit which defines a class with the given name.
 ASProject newEmptyASProject(java.lang.String outputLocation)
           
 CompilationUnit newInterface(java.lang.String qualifiedInterfaceName)
          Creates a new CompilationUnit which defines an interface with the given name.
 ASParser newParser()
           
 ASWriter newWriter()
           
static java.lang.String str(java.lang.String str)
          Escape the given String and place within double quotes so that it will be a valid ActionScript string literal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASSourceFactory

public ASSourceFactory()
Method Detail

newClass

public CompilationUnit newClass(java.lang.String qualifiedClassName)
Creates a new CompilationUnit which defines a class with the given name. To populate the new class, you can do something like,
 CompilationUnit cu = fact.newClass("MyTest");
 ASTClassType myclass = (ASTClassType)cu.getType();
 // ... add stuff to myclass  ...
 


newInterface

public CompilationUnit newInterface(java.lang.String qualifiedInterfaceName)
Creates a new CompilationUnit which defines an interface with the given name. To populate the new interface, you can do something like,
 CompilationUnit cu = fact.newClass("MyTest");
 ASTClassType myiface = (ASTInterfaceType)cu.getType();
 // ... add stuff to myiface  ...
 


newWriter

public ASWriter newWriter()

newParser

public ASParser newParser()

str

public static java.lang.String str(java.lang.String str)
Escape the given String and place within double quotes so that it will be a valid ActionScript string literal.


newBlock

public ASBlock newBlock()

newEmptyASProject

public ASProject newEmptyASProject(java.lang.String outputLocation)


Copyright © 2006 null. All Rights Reserved.