Skip to content

Commit

Permalink
[AlpakkaWeaver] Automatic changes to code
Browse files Browse the repository at this point in the history
  • Loading branch information
joaobispo committed Jan 2, 2025
1 parent 28e5cf2 commit 2c7c49b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import org.lara.interpreter.weaver.interf.JoinPoint;
import org.lara.interpreter.weaver.options.WeaverOption;
import org.lara.interpreter.weaver.utils.LaraResourceProvider;
import org.lara.language.specification.dsl.LanguageSpecificationV2;
import org.lara.language.specification.dsl.LanguageSpecification;
import org.suikasoft.jOptions.Interfaces.DataStore;
import pt.up.fe.specs.alpakka.ast.App;
import pt.up.fe.specs.alpakka.ast.SmaliNode;
Expand Down Expand Up @@ -41,8 +41,8 @@ public static String getWovenCodeFoldername() {
/**
* @return
*/
public static LanguageSpecificationV2 buildLanguageSpecification() {
return LanguageSpecificationV2.newInstance(() -> "smali/weaverspecs/joinPointModel.xml",
public static LanguageSpecification buildLanguageSpecification() {
return LanguageSpecification.newInstance(() -> "smali/weaverspecs/joinPointModel.xml",
() -> "smali/weaverspecs/artifacts.xml", () -> "smali/weaverspecs/actionModel.xml");
}

Expand Down Expand Up @@ -194,7 +194,7 @@ public List<WeaverOption> getOptions() {
}

@Override
protected LanguageSpecificationV2 buildLangSpecs() {
protected LanguageSpecification buildLangSpecs() {
return buildLanguageSpecification();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

/**
* Abstract Weaver Implementation for SmaliWeaver<br>
Since the generated abstract classes are always overwritten, their implementation should be done by extending those abstract classes with user-defined classes.<br>
The abstract class {@link pt.up.fe.specs.alpakka.weaver.abstracts.ASmaliWeaverJoinPoint} contains attributes and actions common to all join points.
* Since the generated abstract classes are always overwritten, their implementation should be done by extending those abstract classes with user-defined classes.<br>
* The abstract class {@link pt.up.fe.specs.alpakka.weaver.abstracts.ASmaliWeaverJoinPoint} contains attributes and actions common to all join points.
* The implementation of the abstract methods is mandatory!
* @author Lara C.
*/
Expand All @@ -21,7 +21,7 @@ public abstract class ASmaliWeaver extends LaraWeaverEngine {
*/
@Override
public final List<String> getActions() {
String[] weaverActions= {"replaceWith", "replaceWith", "replaceWith", "replaceWithStrings", "insertBefore", "insertBefore", "insertAfter", "insertAfter", "detach"};
String[] weaverActions= {"detach", "insertAfter", "insertAfter", "insertBefore", "insertBefore", "replaceWith", "replaceWith", "replaceWith", "replaceWithStrings"};
return Arrays.asList(weaverActions);
}

Expand Down

0 comments on commit 2c7c49b

Please sign in to comment.