org.gvnix.flex.as.classpath.as3parser
Class As3ParserMutableClassOrInterfaceTypeDetails

java.lang.Object
  extended by org.gvnix.flex.as.classpath.as3parser.As3ParserMutableClassOrInterfaceTypeDetails
All Implemented Interfaces:
CompilationUnitServices, ASPhysicalTypeDetails, ASClassOrInterfaceTypeDetails, ASMemberHoldingTypeDetails, ASMutableClassOrInterfaceTypeDetails

public class As3ParserMutableClassOrInterfaceTypeDetails
extends Object
implements ASMutableClassOrInterfaceTypeDetails, CompilationUnitServices

Parser-specific details for a mutable ActionScript source file.

Author:
Jeremy Grelle

Field Summary
 uk.co.badgersinfoil.metaas.dom.ASType clazz
           
 boolean isDirty
           
 
Constructor Summary
As3ParserMutableClassOrInterfaceTypeDetails(uk.co.badgersinfoil.metaas.dom.ASCompilationUnit compilationUnit, org.springframework.roo.process.manager.FileManager fileManager, String declaredByMetadataId, String fileIdentifier, ActionScriptType typeName, org.springframework.roo.metadata.MetadataService metadataService, ASPhysicalTypeMetadataProvider physicalTypeMetadataProvider)
           
 
Method Summary
 void addField(ASFieldMetadata fieldMetadata)
          Adds a new field.
 void addField(ASFieldMetadata fieldMetadata, boolean flush)
          Adds a new field.
 void addImport(String fullyQualifiedTypeName)
           
 void addMethod(ASMethodMetadata methodMetadata)
          Adds a new method.
 void addMethod(ASMethodMetadata methodMetadata, boolean flush)
          Adds a new method.
 void addTypeMetaTag(ASMetaTagMetadata metaTag)
          Adds a new type-level meta tag.
 void addTypeMetaTag(ASMetaTagMetadata metaTag, boolean flush)
          Adds a new type-level meta tag.
 void commit()
          Commit changes to disk
static void createType(org.springframework.roo.process.manager.FileManager fileManager, ASClassOrInterfaceTypeDetails cit, String fileIdentifier)
           
 void flush()
          Forces the implementation to flush any changes.
 ActionScriptPackage getCompilationUnitPackage()
           
 String getDeclaredByMetadataId()
           
 ASConstructorMetadata getDeclaredConstructor()
           
 List<ASFieldMetadata> getDeclaredFields()
           
 List<ASMethodMetadata> getDeclaredMethods()
           
 List<ActionScriptType> getExtendsTypes()
           
 List<ActionScriptType> getImplementsTypes()
           
 List<String> getImports()
           
 ActionScriptType getName()
           
static String getOutput(ASClassOrInterfaceTypeDetails cit)
           
 ASPhysicalTypeCategory getPhysicalTypeCategory()
           
 ASClassOrInterfaceTypeDetails getSuperClass()
           
 List<ASMetaTagMetadata> getTypeMetaTags()
           
 void removeField(ActionScriptSymbolName fieldName)
          Removes an existing field.
 void removeField(ActionScriptSymbolName fieldName, boolean flush)
          Removes an existing field.
 void removeTypeMetaTag(String name)
          Removes the type-level meta tag of the name indicated.
 void removeTypeMetaTag(String name, boolean flush)
          Removes the type-level meta tag of the name indicated.
 void updateField(ASFieldMetadata fieldMetadata)
           
 void updateField(ASFieldMetadata fieldMetadata, boolean flush)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clazz

public uk.co.badgersinfoil.metaas.dom.ASType clazz

isDirty

public boolean isDirty
Constructor Detail

As3ParserMutableClassOrInterfaceTypeDetails

public As3ParserMutableClassOrInterfaceTypeDetails(uk.co.badgersinfoil.metaas.dom.ASCompilationUnit compilationUnit,
                                                   org.springframework.roo.process.manager.FileManager fileManager,
                                                   String declaredByMetadataId,
                                                   String fileIdentifier,
                                                   ActionScriptType typeName,
                                                   org.springframework.roo.metadata.MetadataService metadataService,
                                                   ASPhysicalTypeMetadataProvider physicalTypeMetadataProvider)
Method Detail

addField

public void addField(ASFieldMetadata fieldMetadata,
                     boolean flush)
Description copied from interface: ASMutableClassOrInterfaceTypeDetails
Adds a new field. There must not be a field of this name already existing.

Specified by:
addField in interface ASMutableClassOrInterfaceTypeDetails
Parameters:
fieldMetadata - to add (required)
flush - changes to disk immediately

addMethod

public void addMethod(ASMethodMetadata methodMetadata,
                      boolean flush)
Description copied from interface: ASMutableClassOrInterfaceTypeDetails
Adds a new method. A method with the same name and parameter types must not already exist.

Specified by:
addMethod in interface ASMutableClassOrInterfaceTypeDetails
Parameters:
methodMetadata - to add (required)
flush - changes to disk immediately

addTypeMetaTag

public void addTypeMetaTag(ASMetaTagMetadata metaTag,
                           boolean flush)
Description copied from interface: ASMutableClassOrInterfaceTypeDetails
Adds a new type-level meta tag. There must not already be an equivalent meta tag of this defined on the type.

Specified by:
addTypeMetaTag in interface ASMutableClassOrInterfaceTypeDetails
Parameters:
metaTag - to add (required)
flush - changes to disk immediately

updateField

public void updateField(ASFieldMetadata fieldMetadata,
                        boolean flush)
Specified by:
updateField in interface ASMutableClassOrInterfaceTypeDetails

getDeclaredByMetadataId

public String getDeclaredByMetadataId()
Specified by:
getDeclaredByMetadataId in interface ASClassOrInterfaceTypeDetails

getDeclaredConstructor

public ASConstructorMetadata getDeclaredConstructor()
Specified by:
getDeclaredConstructor in interface ASMemberHoldingTypeDetails

getDeclaredFields

public List<ASFieldMetadata> getDeclaredFields()
Specified by:
getDeclaredFields in interface ASMemberHoldingTypeDetails

getDeclaredMethods

public List<ASMethodMetadata> getDeclaredMethods()
Specified by:
getDeclaredMethods in interface ASMemberHoldingTypeDetails

getExtendsTypes

public List<ActionScriptType> getExtendsTypes()
Specified by:
getExtendsTypes in interface ASMemberHoldingTypeDetails

getImplementsTypes

public List<ActionScriptType> getImplementsTypes()
Specified by:
getImplementsTypes in interface ASMemberHoldingTypeDetails

getTypeMetaTags

public List<ASMetaTagMetadata> getTypeMetaTags()
Specified by:
getTypeMetaTags in interface ASMemberHoldingTypeDetails

removeField

public void removeField(ActionScriptSymbolName fieldName,
                        boolean flush)
Description copied from interface: ASMutableClassOrInterfaceTypeDetails
Removes an existing field. A field with the specified name must already exist.

Specified by:
removeField in interface ASMutableClassOrInterfaceTypeDetails
Parameters:
fieldName - to remove (required)
flush - changes to disk immediately

removeTypeMetaTag

public void removeTypeMetaTag(String name,
                              boolean flush)
Description copied from interface: ASMutableClassOrInterfaceTypeDetails
Removes the type-level meta tag of the name indicated. This meta tag must already exist.

Specified by:
removeTypeMetaTag in interface ASMutableClassOrInterfaceTypeDetails
Parameters:
name - of the meta tag to remove (required)
flush - changes to disk immediately

getName

public ActionScriptType getName()
Specified by:
getName in interface ASPhysicalTypeDetails

flush

public void flush()
Description copied from interface: CompilationUnitServices
Forces the implementation to flush any changes.

Specified by:
flush in interface CompilationUnitServices

getCompilationUnitPackage

public ActionScriptPackage getCompilationUnitPackage()
Specified by:
getCompilationUnitPackage in interface CompilationUnitServices

getImports

public List<String> getImports()
Specified by:
getImports in interface CompilationUnitServices

addImport

public void addImport(String fullyQualifiedTypeName)
Specified by:
addImport in interface CompilationUnitServices

getPhysicalTypeCategory

public ASPhysicalTypeCategory getPhysicalTypeCategory()
Specified by:
getPhysicalTypeCategory in interface ASPhysicalTypeDetails

createType

public static final void createType(org.springframework.roo.process.manager.FileManager fileManager,
                                    ASClassOrInterfaceTypeDetails cit,
                                    String fileIdentifier)

getOutput

public static final String getOutput(ASClassOrInterfaceTypeDetails cit)

getSuperClass

public ASClassOrInterfaceTypeDetails getSuperClass()
Specified by:
getSuperClass in interface ASClassOrInterfaceTypeDetails

addField

public void addField(ASFieldMetadata fieldMetadata)
Description copied from interface: ASMutableClassOrInterfaceTypeDetails
Adds a new field. There must not be a field of this name already existing. Changes will be immediately written to disk.

Specified by:
addField in interface ASMutableClassOrInterfaceTypeDetails
Parameters:
fieldMetadata - to add (required)

addMethod

public void addMethod(ASMethodMetadata methodMetadata)
Description copied from interface: ASMutableClassOrInterfaceTypeDetails
Adds a new method. A method with the same name and parameter types must not already exist. Changes will be immediately written to disk.

Specified by:
addMethod in interface ASMutableClassOrInterfaceTypeDetails
Parameters:
methodMetadata - to add (required)

addTypeMetaTag

public void addTypeMetaTag(ASMetaTagMetadata metaTag)
Description copied from interface: ASMutableClassOrInterfaceTypeDetails
Adds a new type-level meta tag. There must not already be an equivalent meta tag of this defined on the type. Changes will be immediately written to disk.

Specified by:
addTypeMetaTag in interface ASMutableClassOrInterfaceTypeDetails
Parameters:
metaTag - to add (required)

updateField

public void updateField(ASFieldMetadata fieldMetadata)
Specified by:
updateField in interface ASMutableClassOrInterfaceTypeDetails

removeField

public void removeField(ActionScriptSymbolName fieldName)
Description copied from interface: ASMutableClassOrInterfaceTypeDetails
Removes an existing field. A field with the specified name must already exist. Changes will be immediately written to disk.

Specified by:
removeField in interface ASMutableClassOrInterfaceTypeDetails
Parameters:
fieldName - to remove (required)

removeTypeMetaTag

public void removeTypeMetaTag(String name)
Description copied from interface: ASMutableClassOrInterfaceTypeDetails
Removes the type-level meta tag of the name indicated. This meta tag must already exist. Changes will be immediately written to disk.

Specified by:
removeTypeMetaTag in interface ASMutableClassOrInterfaceTypeDetails
Parameters:
name - of the meta tag to remove (required)

commit

public void commit()
Description copied from interface: ASMutableClassOrInterfaceTypeDetails
Commit changes to disk

Specified by:
commit in interface ASMutableClassOrInterfaceTypeDetails


Copyright © 2010–2015 Conselleria d'Infraestructures i Transport - Generalitat Valenciana. All rights reserved.