Skip to content

Commit

Permalink
Adapts code to changes in WeaverEngine interface
Browse files Browse the repository at this point in the history
  • Loading branch information
joaobispo committed Dec 31, 2024
1 parent 60b0381 commit 4210069
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 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,6 @@
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.LanguageSpecification;
import org.lara.language.specification.dsl.LanguageSpecificationV2;
import org.suikasoft.jOptions.Interfaces.DataStore;
import pt.up.fe.specs.anycompiler.ast.AnyNode;
Expand Down Expand Up @@ -37,15 +36,10 @@ public class AnyWeaver extends AAnyWeaver {
private DataStore args;
private AnyNode root;

/**
* @return
* @deprecated
*/
@Deprecated
public static LanguageSpecification buildLanguageSpecificationOld() {
return LanguageSpecification.newInstance(() -> "anycompiler/weaverspecs/joinPointModel.xml",
public static LanguageSpecificationV2 buildLanguageSpecification() {
return LanguageSpecificationV2.newInstance(() -> "anycompiler/weaverspecs/joinPointModel.xml",
() -> "anycompiler/weaverspecs/artifacts.xml",
() -> "anycompiler/weaverspecs/actionModel.xml", true);
() -> "anycompiler/weaverspecs/actionModel.xml");
}

public AnyWeaver() {
Expand Down Expand Up @@ -162,8 +156,8 @@ public List<WeaverOption> getOptions() {
}

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

@Override
Expand Down

0 comments on commit 4210069

Please sign in to comment.