Skip to content

Commit

Permalink
[AnyWeaver] Changes to automatically generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
joaobispo committed Jan 2, 2025
1 parent 523a702 commit f9ff1d4
Show file tree
Hide file tree
Showing 4 changed files with 106 additions and 106 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ public final String get_class() {
*
*/
protected enum AnyAttributes {
GETVALUE("getValue"),
PARENT("parent"),
AST("ast"),
CHILDREN("children"),
DESCENDANTS("descendants");
DESCENDANTS("descendants"),
GETVALUE("getValue"),
PARENT("parent");
private String name;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public AJoinPoint addAstImpl(AJoinPoint ast) {
* Adds an AST to the current program, returns the inserted join point
* @param ast
*/
public final AJoinPoint addAst(AJoinPoint ast) {
public final Object addAst(AJoinPoint ast) {
try {
if(hasListeners()) {
eventTrigger().triggerAction(Stage.BEGIN, "addAst", this, Optional.empty(), ast);
Expand All @@ -39,7 +39,7 @@ public final AJoinPoint addAst(AJoinPoint ast) {
if(hasListeners()) {
eventTrigger().triggerAction(Stage.END, "addAst", this, Optional.ofNullable(result), ast);
}
return result;
return result!=null?result:getUndefinedValue();
} catch(Exception e) {
throw new ActionException(get_class(), "addAst", e);
}
Expand Down Expand Up @@ -106,11 +106,11 @@ public final String get_class() {
*
*/
protected enum AppAttributes {
GETVALUE("getValue"),
PARENT("parent"),
AST("ast"),
CHILDREN("children"),
DESCENDANTS("descendants");
DESCENDANTS("descendants"),
GETVALUE("getValue"),
PARENT("parent");
private String name;

/**
Expand Down
Loading

0 comments on commit f9ff1d4

Please sign in to comment.