use of platformSpecific.fakeInternet.ActionType in project L42 by ElvisResearchGroup.
the class Plugin method MliftValue£xthat£xselector£xlib.
@ActionType({ ActionType.NormType.Library, ActionType.NormType.ImmAny, ActionType.NormType.Library, ActionType.NormType.Library })
public Object MliftValue£xthat£xselector£xlib(Object _that, Object _selector, Object _lib) {
ClassB lib = ensureExtractClassB(_lib);
MethodSelector selector = MethodSelector.parse(ensureExtractStringU(_selector));
//TODO: would go in loop for circular graphs?
ExpCore val = Revertable.doRevert(_that);
val = From.from(val, Path.outer(1));
return LiftValue.liftValue(val, selector, lib);
}
use of platformSpecific.fakeInternet.ActionType in project L42 by ElvisResearchGroup.
the class Plugin method MrenameClass£xthat£xsrc£xdest.
@ActionType({ ActionType.NormType.Library, ActionType.NormType.Library, ActionType.NormType.Library, ActionType.NormType.Library })
public Object MrenameClass£xthat£xsrc£xdest(Object _that, Object _src, Object _dest) {
ClassB that = ensureExtractClassB(_that);
List<Ast.C> src = PathAux.parseValidCs(ensureExtractStringU(_src));
List<Ast.C> dest = PathAux.parseValidCs(ensureExtractStringU(_dest));
//System.out.println("####################RENAMECLASS:"+src+" "+dest);
return Rename.renameClass(Resources.getP(), that, src, dest);
}
use of platformSpecific.fakeInternet.ActionType in project L42 by ElvisResearchGroup.
the class Plugin method Mcompose£xleft£xright.
@ActionType({ ActionType.NormType.Library, ActionType.NormType.Library, ActionType.NormType.Library })
public Object Mcompose£xleft£xright(Object _left, Object _right) {
return Timer.record("Mcompose£xleft£xright", () -> {
ClassB left = ensureExtractClassB(_left);
ClassB right = ensureExtractClassB(_right);
try {
return _Sum.sum(Resources.getP(), left, right);
} catch (ArrayIndexOutOfBoundsException exc) {
exc.printStackTrace();
throw exc;
}
});
}
use of platformSpecific.fakeInternet.ActionType in project L42 by ElvisResearchGroup.
the class Plugin method MaddDocumentation£xthat£xpath£xdoc.
@ActionType({ ActionType.NormType.Library, ActionType.NormType.Library, ActionType.NormType.Library, ActionType.NormType.Library })
public Object MaddDocumentation£xthat£xpath£xdoc(Object _that, Object _path, Object _doc) {
ClassB that = ensureExtractClassB(_that);
List<Ast.C> path = PathAux.parseValidCs(ensureExtractStringU(_path));
Doc doc = ensureExtractDoc(_doc);
return AddDocumentation.addDocumentationOnNestedClass(Resources.getP(), that, path, doc);
}
use of platformSpecific.fakeInternet.ActionType in project L42 by ElvisResearchGroup.
the class Plugin method MhideMethod£xthat£xpath£xsrc.
//--------------------------
@ActionType({ ActionType.NormType.Library, ActionType.NormType.Library, ActionType.NormType.Library, ActionType.NormType.Library })
public Object MhideMethod£xthat£xpath£xsrc(Object _that, Object _path, Object _src) {
ClassB that = ensureExtractClassB(_that);
List<Ast.C> path = PathAux.parseValidCs(ensureExtractStringU(_path));
MethodSelector src = MethodSelector.parse(ensureExtractStringU(_src));
MethodSelector dest = src.withUniqueNum(L42.freshPrivate());
return Rename.renameMethod(Resources.getP(), that, path, src, dest);
}
Aggregations