Skip to content

Commit

Permalink
[AnyWeaver] 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 f9ff1d4 commit 5c1a3fb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions AnyWeaver/src/pt/up/fe/specs/anycompiler/weaver/AnyWeaver.java
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.anycompiler.ast.AnyNode;
import pt.up.fe.specs.anycompiler.ast.GenericAnyNode;
Expand Down Expand Up @@ -36,8 +36,8 @@ public class AnyWeaver extends AAnyWeaver {
private DataStore args;
private AnyNode root;

public static LanguageSpecificationV2 buildLanguageSpecification() {
return LanguageSpecificationV2.newInstance(() -> "anycompiler/weaverspecs/joinPointModel.xml",
public static LanguageSpecification buildLanguageSpecification() {
return LanguageSpecification.newInstance(() -> "anycompiler/weaverspecs/joinPointModel.xml",
() -> "anycompiler/weaverspecs/artifacts.xml",
() -> "anycompiler/weaverspecs/actionModel.xml");
}
Expand Down Expand Up @@ -86,7 +86,7 @@ public boolean begin(List<File> sources, File outputDir, DataStore args) {
}


private LanguageSpecificationV2 buildLangSpec() {
private LanguageSpecification buildLangSpec() {
// TODO Auto-generated method stub
return null;
}
Expand Down Expand Up @@ -156,7 +156,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 AnyWeaver<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.anycompiler.weaver.abstracts.AAnyWeaverJoinPoint} 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.anycompiler.weaver.abstracts.AAnyWeaverJoinPoint} 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 AAnyWeaver extends LaraWeaverEngine {
*/
@Override
public final List<String> getActions() {
String[] weaverActions= {"replaceWith", "replaceWith", "replaceWith", "replaceWithStrings", "insertBefore", "insertBefore", "insertAfter", "insertAfter", "detach", "setValue", "addAst"};
String[] weaverActions= {"detach", "insertAfter", "insertAfter", "insertBefore", "insertBefore", "replaceWith", "replaceWith", "replaceWith", "replaceWithStrings", "setValue", "addAst"};
return Arrays.asList(weaverActions);
}

Expand Down

0 comments on commit 5c1a3fb

Please sign in to comment.