Search in sources :

Example 6 with ActionType

use of platformSpecific.fakeInternet.ActionType in project L42 by ElvisResearchGroup.

the class Plugin method MrenameMethod£xthat£xpath£xsrc£xdest.

@ActionType({ ActionType.NormType.Library, ActionType.NormType.Library, ActionType.NormType.Library, ActionType.NormType.Library, ActionType.NormType.Library })
public Object MrenameMethod£xthat£xpath£xsrc£xdest(Object _that, Object _path, Object _src, Object _dest) {
    ClassB that = ensureExtractClassB(_that);
    List<Ast.C> path = PathAux.parseValidCs(ensureExtractStringU(_path));
    MethodSelector src = MethodSelector.parse(ensureExtractStringU(_src));
    MethodSelector dest = MethodSelector.parse(ensureExtractStringU(_dest));
    return Rename.renameMethod(Resources.getP(), that, path, src, dest);
}
Also used : MethodSelector(ast.Ast.MethodSelector) ClassB(ast.ExpCore.ClassB) EncodingHelper.ensureExtractClassB(auxiliaryGrammar.EncodingHelper.ensureExtractClassB) ActionType(platformSpecific.fakeInternet.ActionType)

Example 7 with ActionType

use of platformSpecific.fakeInternet.ActionType in project L42 by ElvisResearchGroup.

the class Plugin method MremoveImplementation£xthat£xpath.

@ActionType({ ActionType.NormType.Library, ActionType.NormType.Library, ActionType.NormType.Library })
public Object MremoveImplementation£xthat£xpath(Object _that, Object _path) {
    ClassB that = ensureExtractClassB(_that);
    List<Ast.C> path = PathAux.parseValidCs(ensureExtractStringU(_path));
    return Abstract.toAbstract(that, path);
}
Also used : ClassB(ast.ExpCore.ClassB) EncodingHelper.ensureExtractClassB(auxiliaryGrammar.EncodingHelper.ensureExtractClassB) ActionType(platformSpecific.fakeInternet.ActionType)

Example 8 with ActionType

use of platformSpecific.fakeInternet.ActionType in project L42 by ElvisResearchGroup.

the class Plugin method MsumMethods£xthat£xpath£xsrc1£xsrc2£xdest£xname.

@ActionType({ ActionType.NormType.Library, ActionType.NormType.Library, ActionType.NormType.Library, ActionType.NormType.Library, ActionType.NormType.Library, ActionType.NormType.Library, ActionType.NormType.Library })
public Object MsumMethods£xthat£xpath£xsrc1£xsrc2£xdest£xname(Object _that, Object _path, Object _src1, Object _src2, Object _dest, Object _name) {
    ClassB that = ensureExtractClassB(_that);
    String name = ensureExtractStringU(_name);
    List<Ast.C> path = PathAux.parseValidCs(ensureExtractStringU(_path));
    MethodSelector src1 = MethodSelector.parse(ensureExtractStringU(_src1));
    MethodSelector src2 = MethodSelector.parse(ensureExtractStringU(_src2));
    MethodSelector dest = MethodSelector.parse(ensureExtractStringU(_dest));
    return SumMethods.sumMethods(that, path, src1, src2, dest, name);
}
Also used : MethodSelector(ast.Ast.MethodSelector) ClassB(ast.ExpCore.ClassB) EncodingHelper.ensureExtractClassB(auxiliaryGrammar.EncodingHelper.ensureExtractClassB) ActionType(platformSpecific.fakeInternet.ActionType)

Example 9 with ActionType

use of platformSpecific.fakeInternet.ActionType in project L42 by ElvisResearchGroup.

the class Plugin method MaddDocumentation£xthat£xpath£xselector£xdoc.

@ActionType({ ActionType.NormType.Library, ActionType.NormType.Library, ActionType.NormType.Library, ActionType.NormType.Library, ActionType.NormType.Library })
public Object MaddDocumentation£xthat£xpath£xselector£xdoc(Object _that, Object _path, Object _sel, Object _doc) {
    ClassB that = ensureExtractClassB(_that);
    List<Ast.C> path = PathAux.parseValidCs(ensureExtractStringU(_path));
    MethodSelector sel = MethodSelector.parse(ensureExtractStringU(_sel));
    Doc doc = ensureExtractDoc(_doc);
    return AddDocumentation.addDocumentationOnMethod(Resources.getP(), that, path, sel, doc);
}
Also used : MethodSelector(ast.Ast.MethodSelector) Doc(ast.Ast.Doc) EncodingHelper.ensureExtractDoc(auxiliaryGrammar.EncodingHelper.ensureExtractDoc) ClassB(ast.ExpCore.ClassB) EncodingHelper.ensureExtractClassB(auxiliaryGrammar.EncodingHelper.ensureExtractClassB) ActionType(platformSpecific.fakeInternet.ActionType)

Example 10 with ActionType

use of platformSpecific.fakeInternet.ActionType in project L42 by ElvisResearchGroup.

the class Plugin method MdeployCode£xthat£xurl.

@ActionType({ ActionType.NormType.Void, ActionType.NormType.Library, ActionType.NormType.Library })
public Resources.Void MdeployCode£xthat£xurl(Object _that, Object _url) {
    ClassB that = ensureExtractClassB(_that);
    String url = ensureExtractStringU(_url);
    String text = sugarVisitors.ToFormattedText.of(that);
    java.nio.file.Path p = Paths.get(url);
    try {
        Files.write(p, text.getBytes());
    } catch (IOException e) {
        throw new Error(e);
    }
    return Resources.Void.instance;
}
Also used : IOException(java.io.IOException) ClassB(ast.ExpCore.ClassB) EncodingHelper.ensureExtractClassB(auxiliaryGrammar.EncodingHelper.ensureExtractClassB) ActionType(platformSpecific.fakeInternet.ActionType)

Aggregations

ClassB (ast.ExpCore.ClassB)16 EncodingHelper.ensureExtractClassB (auxiliaryGrammar.EncodingHelper.ensureExtractClassB)16 ActionType (platformSpecific.fakeInternet.ActionType)16 MethodSelector (ast.Ast.MethodSelector)8 Doc (ast.Ast.Doc)2 EncodingHelper.ensureExtractDoc (auxiliaryGrammar.EncodingHelper.ensureExtractDoc)2 Path (ast.Ast.Path)1 ExpCore (ast.ExpCore)1 IOException (java.io.IOException)1 ArrayList (java.util.ArrayList)1