Search in sources :

Example 6 with ClassUnfit

use of is.L42.connected.withSafeOperators.pluginWrapper.RefactorErrors.ClassUnfit in project L42 by ElvisResearchGroup.

the class PlgWrapperGenerator method isOkAsException.

private static void isOkAsException(Program p, Path csTop, Path pi) throws ClassUnfit, MethodUnfit {
    Path op = _pathForOutside(csTop.getCBar().size(), pi);
    if (op == null) {
        checkForInside(p.top(), csTop, pi);
        return;
    }
    ClassB l = p.extractClassB(op);
    if (!hasExceptionIf(l)) {
        throw new RefactorErrors.ClassUnfit().msg("Class " + op + " has no method #exceptionIf(binaryRepr)");
    }
}
Also used : Path(ast.Ast.Path) ClassUnfit(is.L42.connected.withSafeOperators.pluginWrapper.RefactorErrors.ClassUnfit) ClassB(ast.ExpCore.ClassB)

Aggregations

ClassUnfit (is.L42.connected.withSafeOperators.pluginWrapper.RefactorErrors.ClassUnfit)6 Path (ast.Ast.Path)5 ClassB (ast.ExpCore.ClassB)4 MethodUnfit (is.L42.connected.withSafeOperators.pluginWrapper.RefactorErrors.MethodUnfit)4 MethodWithType (ast.ExpCore.ClassB.MethodWithType)2 Doc (ast.Ast.Doc)1 MethodType (ast.Ast.MethodType)1 Type (ast.Ast.Type)1 Member (ast.ExpCore.ClassB.Member)1 Constructor (java.lang.reflect.Constructor)1 Method (java.lang.reflect.Method)1 ArrayList (java.util.ArrayList)1 PluginWithPart (platformSpecific.fakeInternet.PluginWithPart)1 PlgInfo (platformSpecific.fakeInternet.PluginWithPart.PlgInfo)1 UsingInfo (platformSpecific.fakeInternet.PluginWithPart.UsingInfo)1