@Test public void testToString() { If ifExpr = new If(new PacketMatchExpr(FalseExpr.INSTANCE), ImmutableList.of()); assertTrue(ifExpr.toString().contains(ifExpr.getClass().getSimpleName())); }
@Override public String toString() { return MoreObjects.toStringHelper(this).toString(); }
If implements Statement { @Override public String toString() { return MoreObjects.toStringHelper(this).toString(); } }
If implements Statement { @Override public String toString() { return MoreObjects.toStringHelper(this).toString(); } If(BoolExpr matchCondition, List<Statement> trueStatements); }
If implements Statement { @Override public String toString() { return MoreObjects.toStringHelper(this).toString(); } If(BoolExpr matchCondition, List<Statement> trueStatements); @Nonnull @JsonProperty(PROP_ACTIONS) List<Statement> getTrueStatements(); @Nonnull @JsonProperty(PROP_TRUE_STATEMENTS) BoolExpr getMatchCondition(); @Override T accept(StatementVisitor<T> visitor); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override String toString(); }
If implements Statement { @Override public String toString() { return MoreObjects.toStringHelper(this).toString(); } If(BoolExpr matchCondition, List<Statement> trueStatements); @Nonnull @JsonProperty(PROP_ACTIONS) List<Statement> getTrueStatements(); @Nonnull @JsonProperty(PROP_TRUE_STATEMENTS) BoolExpr getMatchCondition(); @Override T accept(StatementVisitor<T> visitor); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override String toString();  }