Search in sources :

Example 1 with TypedIdeDeclaration

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

the class JsCodeGenerator method generateStaticMethodList.

private void generateStaticMethodList(ClassDeclaration classDeclaration) throws IOException {
    out.write("[");
    boolean isFirst = true;
    for (TypedIdeDeclaration memberDeclaration : classDeclaration.getStaticMembers().values()) {
        if (memberDeclaration.isMethod() && !memberDeclaration.isPrivate() && !memberDeclaration.isProtected() && memberDeclaration.isStatic() && !memberDeclaration.isNative()) {
            if (isFirst) {
                isFirst = false;
            } else {
                out.write(",");
            }
            out.write('"');
            out.write(memberDeclaration.getName());
            out.write('"');
        }
    }
    out.write("]");
}
Also used : TypedIdeDeclaration(net.jangaroo.jooc.ast.TypedIdeDeclaration)

Aggregations

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