public class ClassModel extends AbstractAnnotatedModel implements NamespacedModel
INTERNAL, PRIVATE, PROTECTED, PUBLIC| Constructor and Description |
|---|
ClassModel() |
ClassModel(String name) |
ClassModel(String name,
String superclass) |
addAnnotation, getAnnotations, getAnnotations, setAnnotationsgetAsdoc, setAsdocequals, getName, hashCode, setNamepublic ClassModel()
public ClassModel(String name)
name - (unqualified) class namepublic String getNamespace()
getNamespace in interface NamespacedModelpublic void setNamespace(String namespace)
setNamespace in interface NamespacedModelpublic boolean isFinal()
public void setFinal(boolean aFinal)
public boolean isDynamic()
public void setDynamic(boolean dynamic)
public boolean isInterface()
public void setInterface(boolean value)
public String getSuperclass()
public void setSuperclass(String superclass)
public void addInterface(String interfaceName)
public String getAnnotationCode()
public void setAnnotationCode(String annotationCode)
public void addAnnotationCode(String code)
public String getBodyCode()
public void setBodyCode(String bodyCode)
public void addBodyCode(String code)
public List<AnnotationModel> getEvents()
public AnnotationModel getEvent(String name)
public List<MemberModel> getMembers()
public void setMembers(List<MemberModel> members)
public MemberModel addMember(MemberModel member)
member - the new member to addpublic PropertyModel getProperty(boolean isStatic, String name)
public MemberModel getMember(String name)
public MemberModel getStaticMember(String name)
public MemberModel getMember(boolean isStatic, String name)
public PropertyModel getProperty(MethodModel accessor)
public boolean removeMember(MemberModel memberModel)
public MethodModel getConstructor()
public MethodModel getStaticMethod(String name)
public MethodModel getStaticMethod(MethodType methodType, String name)
public MethodModel getMethod(String name)
public MethodModel getMethod(MethodType methodType, String name)
public MethodModel getMethod(boolean isStatic, MethodType methodType, String name)
public MethodModel createConstructor()
public void visit(ModelVisitor visitor)
visit in interface ActionScriptModelpublic MemberModel findPropertyWithAnnotation(boolean isStatic, String annotationName)
public Set<MemberModel> findPropertiesWithAnnotation(boolean isStatic, String annotationName)
Copyright © 2002–2017 CoreMedia AG. All rights reserved.