Skip to content

Commit

Permalink
✨ feat: Add id to the contract
Browse files Browse the repository at this point in the history
  • Loading branch information
caoccao committed Jul 3, 2023
1 parent 6293db6 commit 6731179
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/main/java/com/caoccao/jaspiler/JaspilerContract.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ public boolean isNoChange() {
*/
@Retention(RetentionPolicy.SOURCE)
public @interface Change {
/**
* Identifier.
*
* @return the identifier
* @since 0.1.0
*/
String id() default "";

/**
* Condition is a JavaScript expression / statement / statements that returns a boolean
* indicating whether certain condition is true or false.
Expand Down Expand Up @@ -92,5 +100,13 @@ public boolean isNoChange() {
* @since 0.1.0
*/
String condition() default "";

/**
* Identifier.
*
* @return the identifier
* @since 0.1.0
*/
String id() default "";
}
}

0 comments on commit 6731179

Please sign in to comment.