net.jangaroo.jooc.model
Class ClassModel

java.lang.Object
  extended by net.jangaroo.jooc.model.NamedModel
      extended by net.jangaroo.jooc.model.DocumentedModel
          extended by net.jangaroo.jooc.model.AbstractAnnotatedModel
              extended by net.jangaroo.jooc.model.ClassModel
All Implemented Interfaces:
ActionScriptModel, AnnotatedModel, NamespacedModel

public class ClassModel
extends AbstractAnnotatedModel
implements NamespacedModel

A model of an ActionScript class or interface.


Field Summary
 
Fields inherited from interface net.jangaroo.jooc.model.NamespacedModel
INTERNAL, PRIVATE, PROTECTED, PUBLIC
 
Constructor Summary
ClassModel()
           
ClassModel(String name)
           
ClassModel(String name, String superclass)
           
 
Method Summary
 void addInterface(String interfaceName)
           
 void addMember(MemberModel member)
           
 MethodModel createConstructor()
           
 MethodModel getConstructor()
           
 List<String> getInterfaces()
           
 MemberModel getMember(String name)
           
 List<MemberModel> getMembers()
           
 MethodModel getMethod(MethodType methodType, String name)
           
 MethodModel getMethod(String name)
           
 String getNamespace()
           
 PropertyModel getProperty(boolean isStatic, String name)
           
 MemberModel getStaticMember(String name)
           
 MethodModel getStaticMethod(MethodType methodType, String name)
           
 MethodModel getStaticMethod(String name)
           
 String getSuperclass()
           
 boolean isDynamic()
           
 boolean isFinal()
           
 boolean isInterface()
           
 boolean removeMember(MemberModel memberModel)
           
 void setDynamic(boolean dynamic)
           
 void setFinal(boolean aFinal)
           
 void setInterface(boolean value)
           
 void setInterfaces(List<String> interfaces)
           
 void setMembers(List<MemberModel> members)
           
 void setNamespace(String namespace)
           
 void setSuperclass(String superclass)
           
 void visit(ModelVisitor visitor)
           
 
Methods inherited from class net.jangaroo.jooc.model.AbstractAnnotatedModel
addAnnotation, getAnnotations, setAnnotations
 
Methods inherited from class net.jangaroo.jooc.model.DocumentedModel
getAsdoc, setAsdoc
 
Methods inherited from class net.jangaroo.jooc.model.NamedModel
equals, getName, hashCode, setName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassModel

public ClassModel()

ClassModel

public ClassModel(String name)

ClassModel

public ClassModel(String name,
                  String superclass)
Method Detail

getNamespace

public String getNamespace()
Specified by:
getNamespace in interface NamespacedModel

setNamespace

public void setNamespace(String namespace)
Specified by:
setNamespace in interface NamespacedModel

isFinal

public boolean isFinal()

setFinal

public void setFinal(boolean aFinal)

isDynamic

public boolean isDynamic()

setDynamic

public void setDynamic(boolean dynamic)

isInterface

public boolean isInterface()

setInterface

public void setInterface(boolean value)

getSuperclass

public String getSuperclass()

setSuperclass

public void setSuperclass(String superclass)

getInterfaces

public List<String> getInterfaces()

setInterfaces

public void setInterfaces(List<String> interfaces)

addInterface

public void addInterface(String interfaceName)

getMembers

public List<MemberModel> getMembers()

setMembers

public void setMembers(List<MemberModel> members)

addMember

public void addMember(MemberModel member)

getProperty

public PropertyModel getProperty(boolean isStatic,
                                 String name)

getMember

public MemberModel getMember(String name)

getStaticMember

public MemberModel getStaticMember(String name)

removeMember

public boolean removeMember(MemberModel memberModel)

getConstructor

public MethodModel getConstructor()

getStaticMethod

public MethodModel getStaticMethod(String name)

getStaticMethod

public MethodModel getStaticMethod(MethodType methodType,
                                   String name)

getMethod

public MethodModel getMethod(String name)

getMethod

public MethodModel getMethod(MethodType methodType,
                             String name)

createConstructor

public MethodModel createConstructor()

visit

public void visit(ModelVisitor visitor)
Specified by:
visit in interface ActionScriptModel


Copyright © 2002-2012 CoreMedia AG. All Rights Reserved.