File tree Expand file tree Collapse file tree
src/main/java/org/jamplate/logic Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323 * A logic evaluates to {@code true} if both two logics evaluates to {@code true}.
2424 *
2525 * @author LSafer
26- * @version 0.0.4
26+ * @version 0.0.6
2727 * @since 0.0.4 ~2020.09.22
2828 */
2929public class And implements Logic {
@@ -55,6 +55,26 @@ public And(Logic left, Logic right) {
5555 this .right = right ;
5656 }
5757
58+ /**
59+ * Get the {@link #left} logic of this.
60+ *
61+ * @return the {@link #left} logic of this.
62+ * @since 0.0.6 ~2020.09.22
63+ */
64+ public final Logic left () {
65+ return this .left ;
66+ }
67+
68+ /**
69+ * Get the {@link #right} logic of this.
70+ *
71+ * @return the {@link #right} logic of this.
72+ * @since 0.0.6 ~2020.09.22
73+ */
74+ public final Logic right () {
75+ return this .right ;
76+ }
77+
5878 @ Override
5979 public String evaluate (Memory memory ) {
6080 Objects .requireNonNull (memory , "memory" );
Original file line number Diff line number Diff line change 2323 * A logic evaluates to {@code true} if ether two logics evaluates to {@code true}.
2424 *
2525 * @author LSafer
26- * @version 0.0.4
26+ * @version 0.0.6
2727 * @since 0.0.4 ~2020.09.22
2828 */
2929public class Or implements Logic {
@@ -55,6 +55,26 @@ public Or(Logic left, Logic right) {
5555 this .right = right ;
5656 }
5757
58+ /**
59+ * Get the {@link #left} logic of this.
60+ *
61+ * @return the {@link #left} logic of this.
62+ * @since 0.0.6 ~2020.09.22
63+ */
64+ public final Logic left () {
65+ return this .left ;
66+ }
67+
68+ /**
69+ * Get the {@link #right} logic of this.
70+ *
71+ * @return the {@link #right} logic of this.
72+ * @since 0.0.6 ~2020.09.22
73+ */
74+ public final Logic right () {
75+ return this .right ;
76+ }
77+
5878 @ Override
5979 public String evaluate (Memory memory ) {
6080 Objects .requireNonNull (memory , "memory" );
You can’t perform that action at this time.
0 commit comments