Search in sources :

Example 1 with LoggerVisitor

use of org.eclipse.titan.codegenerator.experimental.LoggerVisitor in project titan.EclipsePlug-ins by eclipse.

the class AstRunnerJava method walkChildren.

private void walkChildren(ASTVisitor visitor, Object[] children) {
    LoggerVisitor logger = new LoggerVisitor();
    for (Object child : children) {
        if (child instanceof Definitions) {
            Definitions definitions = (Definitions) child;
            moduleElementName = definitions.getFullName();
            logToConsole("Starting processing:  " + moduleElementName);
            myASTVisitor.myFunctionTestCaseVisitHandler.clearEverything();
            if (Boolean.parseBoolean(props.getProperty("ast.log.enabled"))) {
                definitions.accept(logger);
            }
            definitions.accept(visitor);
            logToConsole("Finished processing:  " + moduleElementName);
        }
    }
}
Also used : LoggerVisitor(org.eclipse.titan.codegenerator.experimental.LoggerVisitor) Definitions(org.eclipse.titan.designer.AST.TTCN3.definitions.Definitions)

Example 2 with LoggerVisitor

use of org.eclipse.titan.codegenerator.experimental.LoggerVisitor in project titan.EclipsePlug-ins by eclipse.

the class AstWalkerJava method walkChildren.

private void walkChildren(ASTVisitor visitor, Object[] children) {
    LoggerVisitor logger = new LoggerVisitor();
    for (Object child : children) {
        if (child instanceof Definitions) {
            Definitions definitions = (Definitions) child;
            moduleElementName = definitions.getFullName();
            logToConsole("Starting processing:  " + moduleElementName);
            myASTVisitor.myFunctionTestCaseVisitHandler.clearEverything();
            if (Boolean.parseBoolean(props.getProperty("ast.log.enabled"))) {
                definitions.accept(logger);
            }
            definitions.accept(visitor);
            logToConsole("Finished processing:  " + moduleElementName);
        }
    }
}
Also used : LoggerVisitor(org.eclipse.titan.codegenerator.experimental.LoggerVisitor) Definitions(org.eclipse.titan.designer.AST.TTCN3.definitions.Definitions)

Example 3 with LoggerVisitor

use of org.eclipse.titan.codegenerator.experimental.LoggerVisitor in project titan.EclipsePlug-ins by eclipse.

the class AstWalkerRunnerJava method walkChildren.

private void walkChildren(ASTVisitor visitor, Object[] children) {
    LoggerVisitor logger = new LoggerVisitor();
    for (Object child : children) {
        if (child instanceof Definitions) {
            Definitions definitions = (Definitions) child;
            moduleElementName = definitions.getFullName();
            logToConsole("Starting processing:  " + moduleElementName);
            myASTVisitor.myFunctionTestCaseVisitHandler.clearEverything();
            if (Boolean.parseBoolean(props.getProperty("ast.log.enabled"))) {
                definitions.accept(logger);
            }
            definitions.accept(visitor);
            logToConsole("Finished processing:  " + moduleElementName);
        }
    }
}
Also used : LoggerVisitor(org.eclipse.titan.codegenerator.experimental.LoggerVisitor) Definitions(org.eclipse.titan.designer.AST.TTCN3.definitions.Definitions)

Aggregations

LoggerVisitor (org.eclipse.titan.codegenerator.experimental.LoggerVisitor)3 Definitions (org.eclipse.titan.designer.AST.TTCN3.definitions.Definitions)3