Skip to content

Commit

Permalink
clean up deprecated JML ast classes
Browse files Browse the repository at this point in the history
  • Loading branch information
wadoon committed May 4, 2024
1 parent bfaa6b1 commit 5a1852c
Show file tree
Hide file tree
Showing 49 changed files with 152 additions and 1,476 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@ public class MetaModelGenerator extends AbstractGenerator {
add(JmlMethodDeclaration.class);
add(JmlFieldDeclaration.class);
add(JmlClause.class);
add(JmlBodyDeclaration.class);
add(JmlSimpleExprClause.class);
add(JmlMultiExprClause.class);
add(JmlSignalsClause.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -422,20 +422,6 @@ public Optional<JmlRepresentsDeclaration> toJmlRepresentsDeclaration() {
public void ifJmlRepresentsDeclaration(Consumer<JmlRepresentsDeclaration> action) {
}

@Generated("com.github.javaparser.generator.core.node.TypeCastingGenerator")
public JmlBodyDeclaration asJmlBodyDeclaration() {
throw new IllegalStateException(f("%s is not JmlBodyDeclaration, it is %s", this, this.getClass().getSimpleName()));
}

@Generated("com.github.javaparser.generator.core.node.TypeCastingGenerator")
public Optional<JmlBodyDeclaration> toJmlBodyDeclaration() {
return Optional.empty();
}

@Generated("com.github.javaparser.generator.core.node.TypeCastingGenerator")
public void ifJmlBodyDeclaration(Consumer<JmlBodyDeclaration> action) {
}

@Generated("com.github.javaparser.generator.core.node.TypeCastingGenerator")
public boolean isJmlDocDeclaration() {
return false;
Expand Down Expand Up @@ -578,4 +564,19 @@ public Optional<JmlClassExprDeclaration> toJmlClassExprDeclaration() {
@Generated("com.github.javaparser.generator.core.node.TypeCastingGenerator")
public void ifJmlClassExprDeclaration(Consumer<JmlClassExprDeclaration> action) {
}

public boolean isJmlClassLevelDeclaration() {
return false;
}

public JmlClassLevelDeclaration asJmlClassLevelDeclaration() {
throw new IllegalStateException(f("%s is not JmlClassLevelDeclaration, it is %s", this, this.getClass().getSimpleName()));
}

public Optional<JmlClassLevelDeclaration> toJmlClassLevelDeclaration() {
return Optional.empty();
}

public void ifJmlClassLevelDeclaration(Consumer<JmlClassLevelDeclaration> action) {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1106,4 +1106,19 @@ public Optional<JmlTypeExpr> toJmlTypeExpr() {
@Generated("com.github.javaparser.generator.core.node.TypeCastingGenerator")
public void ifJmlTypeExpr(Consumer<JmlTypeExpr> action) {
}

public boolean isJmlSetComprehensionExpr() {
return false;
}

public JmlSetComprehensionExpr asJmlSetComprehensionExpr() {
throw new IllegalStateException(f("%s is not JmlSetComprehensionExpr, it is %s", this, this.getClass().getSimpleName()));
}

public Optional<JmlSetComprehensionExpr> toJmlSetComprehensionExpr() {
return Optional.empty();
}

public void ifJmlSetComprehensionExpr(Consumer<JmlSetComprehensionExpr> action) {
}
}

This file was deleted.

Loading

0 comments on commit 5a1852c

Please sign in to comment.