Search in sources :

Example 1 with JavaModelToPojoModelQuery

use of org.whole.lang.pojo.templates.JavaModelToPojoModelQuery in project whole by wholeplatform.

the class PojoMappingUtils method getLibrary.

public static Library getLibrary(Misc compilationUnits, IBindingManager bindings) {
    PathExpression javaModelToPojoModel = new JavaModelToPojoModelQuery().create();
    Library library = BehaviorUtils.<Library>evaluateFirstResult(javaModelToPojoModel, compilationUnits, bindings);
    Matcher.removeVars(library, true);
    return library;
}
Also used : JavaModelToPojoModelQuery(org.whole.lang.pojo.templates.JavaModelToPojoModelQuery) PathExpression(org.whole.lang.queries.model.PathExpression) Library(org.whole.lang.pojo.model.Library)

Aggregations

Library (org.whole.lang.pojo.model.Library)1 JavaModelToPojoModelQuery (org.whole.lang.pojo.templates.JavaModelToPojoModelQuery)1 PathExpression (org.whole.lang.queries.model.PathExpression)1