Search in sources :

Example 1 with ClassDeclaration

use of net.jangaroo.jooc.ast.ClassDeclaration in project jangaroo-tools by CoreMedia.

the class ConfigClassBuilder method visitClassDeclaration.

@Override
public void visitClassDeclaration(ClassDeclaration classDeclaration) throws IOException {
    String name = classDeclaration.getName();
    configClass.setName(name);
    ClassDeclaration superTypeDeclaration = classDeclaration.getSuperTypeDeclaration();
    //Ignore superclass if its object or null
    String superClassName = superTypeDeclaration == null ? null : "Object".equals(superTypeDeclaration.getQualifiedNameStr()) ? null : superTypeDeclaration.getQualifiedNameStr();
    configClass.setSuperClassName(superClassName);
    String description = parseDescription(classDeclaration.getSymClass(), classDeclaration.getSymModifiers());
    if (description != null && description.trim().length() > 0) {
        configClass.setDescription(description);
    }
    classDeclaration.getBody().visit(this);
}
Also used : ClassDeclaration(net.jangaroo.jooc.ast.ClassDeclaration)

Aggregations

ClassDeclaration (net.jangaroo.jooc.ast.ClassDeclaration)1