@Test public void testAnd() { assertThat(and(ImmutableList.of()), equalTo(TrueExpr.INSTANCE)); MatchSrcInterface expr = matchSrcInterface("a"); assertThat(and(ImmutableList.of(expr)), equalTo(expr)); }
public static AclLineMatchExpr and(String traceElement, AclLineMatchExpr... exprs) { return new AndMatchExpr(ImmutableList.copyOf(exprs), traceElement); }
AclLineMatchExprs { public static AclLineMatchExpr and(String traceElement, AclLineMatchExpr... exprs) { return new AndMatchExpr(ImmutableList.copyOf(exprs), traceElement); } }
AclLineMatchExprs { public static AclLineMatchExpr and(String traceElement, AclLineMatchExpr... exprs) { return new AndMatchExpr(ImmutableList.copyOf(exprs), traceElement); } private  AclLineMatchExprs(); }
AclLineMatchExprs { public static AclLineMatchExpr and(String traceElement, AclLineMatchExpr... exprs) { return new AndMatchExpr(ImmutableList.copyOf(exprs), traceElement); } private  AclLineMatchExprs(); static AclLineMatchExpr and(String traceElement, AclLineMatchExpr... exprs); static AclLineMatchExpr and(AclLineMatchExpr... exprs); static AclLineMatchExpr and(Iterable<AclLineMatchExpr> exprs); static AclLineMatchExpr implies(AclLineMatchExpr condition, AclLineMatchExpr consequent); static MatchHeaderSpace match(HeaderSpace headerSpace); static @Nonnull AclLineMatchExpr matchDscp(DscpType dscp); static @Nonnull AclLineMatchExpr matchDscp(int dscp); static AclLineMatchExpr matchDst(IpSpace ipSpace); static AclLineMatchExpr matchDst(Ip ip); static AclLineMatchExpr matchDst(IpWildcard wc); static AclLineMatchExpr matchDst(Prefix prefix); static AclLineMatchExpr matchDstIp(String ip); static @Nonnull AclLineMatchExpr matchDstPort(int port); static @Nonnull AclLineMatchExpr matchDstPort(IntegerSpace portSpace); static AclLineMatchExpr matchDstPrefix(String prefix); static AclLineMatchExpr matchSrc(IpSpace ipSpace); static @Nonnull AclLineMatchExpr matchFragmentOffset(int fragmentOffset); static @Nonnull AclLineMatchExpr matchFragmentOffset(IntegerSpace fragmentOffsetSpace); static @Nonnull AclLineMatchExpr matchIcmp(int icmpType, int icmpCode); static @Nonnull AclLineMatchExpr matchIcmpType(int icmpType); static @Nonnull AclLineMatchExpr matchIpProtocol(int ipProtocolNumber); static @Nonnull AclLineMatchExpr matchIpProtocol(IpProtocol ipProtocol); static @Nonnull AclLineMatchExpr matchPacketLength(IntegerSpace packetLengthSpace); static @Nonnull AclLineMatchExpr matchPacketLength(int packetLength); static AclLineMatchExpr matchSrc(Ip ip); static @Nonnull AclLineMatchExpr matchSrc(IpWildcard wc); static AclLineMatchExpr matchSrc(Prefix prefix); static AclLineMatchExpr matchSrcIp(String ip); static AclLineMatchExpr matchSrcPrefix(String prefix); static MatchHeaderSpace matchSrcPort(int port); static @Nonnull AclLineMatchExpr matchSrcPort(IntegerSpace portSpace); static @Nonnull MatchSrcInterface matchSrcInterface(Iterable<String> ifaces); static @Nonnull MatchSrcInterface matchSrcInterface(String... ifaces); static @Nonnull MatchSrcInterface matchSrcInterface(
      TraceElement traceElement, String... ifaces); static @Nonnull AclLineMatchExpr matchTcpFlags(
      TcpFlagsMatchConditions... tcpFlagsMatchConditions); static NotMatchExpr not(String traceElement, AclLineMatchExpr expr); static AclLineMatchExpr not(AclLineMatchExpr expr); static AclLineMatchExpr or(String traceElement, AclLineMatchExpr... exprs); static AclLineMatchExpr or(AclLineMatchExpr... exprs); static AclLineMatchExpr or(Iterable<AclLineMatchExpr> exprs); static PermittedByAcl permittedByAcl(String aclName); static PermittedByAcl permittedByAcl(String aclName, @Nullable TraceElement traceElement); static DeniedByAcl deniedByAcl(String aclName); static DeniedByAcl deniedByAcl(String aclName, @Nullable TraceElement traceElement); }
AclLineMatchExprs { public static AclLineMatchExpr and(String traceElement, AclLineMatchExpr... exprs) { return new AndMatchExpr(ImmutableList.copyOf(exprs), traceElement); } private  AclLineMatchExprs(); static AclLineMatchExpr and(String traceElement, AclLineMatchExpr... exprs); static AclLineMatchExpr and(AclLineMatchExpr... exprs); static AclLineMatchExpr and(Iterable<AclLineMatchExpr> exprs); static AclLineMatchExpr implies(AclLineMatchExpr condition, AclLineMatchExpr consequent); static MatchHeaderSpace match(HeaderSpace headerSpace); static @Nonnull AclLineMatchExpr matchDscp(DscpType dscp); static @Nonnull AclLineMatchExpr matchDscp(int dscp); static AclLineMatchExpr matchDst(IpSpace ipSpace); static AclLineMatchExpr matchDst(Ip ip); static AclLineMatchExpr matchDst(IpWildcard wc); static AclLineMatchExpr matchDst(Prefix prefix); static AclLineMatchExpr matchDstIp(String ip); static @Nonnull AclLineMatchExpr matchDstPort(int port); static @Nonnull AclLineMatchExpr matchDstPort(IntegerSpace portSpace); static AclLineMatchExpr matchDstPrefix(String prefix); static AclLineMatchExpr matchSrc(IpSpace ipSpace); static @Nonnull AclLineMatchExpr matchFragmentOffset(int fragmentOffset); static @Nonnull AclLineMatchExpr matchFragmentOffset(IntegerSpace fragmentOffsetSpace); static @Nonnull AclLineMatchExpr matchIcmp(int icmpType, int icmpCode); static @Nonnull AclLineMatchExpr matchIcmpType(int icmpType); static @Nonnull AclLineMatchExpr matchIpProtocol(int ipProtocolNumber); static @Nonnull AclLineMatchExpr matchIpProtocol(IpProtocol ipProtocol); static @Nonnull AclLineMatchExpr matchPacketLength(IntegerSpace packetLengthSpace); static @Nonnull AclLineMatchExpr matchPacketLength(int packetLength); static AclLineMatchExpr matchSrc(Ip ip); static @Nonnull AclLineMatchExpr matchSrc(IpWildcard wc); static AclLineMatchExpr matchSrc(Prefix prefix); static AclLineMatchExpr matchSrcIp(String ip); static AclLineMatchExpr matchSrcPrefix(String prefix); static MatchHeaderSpace matchSrcPort(int port); static @Nonnull AclLineMatchExpr matchSrcPort(IntegerSpace portSpace); static @Nonnull MatchSrcInterface matchSrcInterface(Iterable<String> ifaces); static @Nonnull MatchSrcInterface matchSrcInterface(String... ifaces); static @Nonnull MatchSrcInterface matchSrcInterface(
      TraceElement traceElement, String... ifaces); static @Nonnull AclLineMatchExpr matchTcpFlags(
      TcpFlagsMatchConditions... tcpFlagsMatchConditions); static NotMatchExpr not(String traceElement, AclLineMatchExpr expr); static AclLineMatchExpr not(AclLineMatchExpr expr); static AclLineMatchExpr or(String traceElement, AclLineMatchExpr... exprs); static AclLineMatchExpr or(AclLineMatchExpr... exprs); static AclLineMatchExpr or(Iterable<AclLineMatchExpr> exprs); static PermittedByAcl permittedByAcl(String aclName); static PermittedByAcl permittedByAcl(String aclName, @Nullable TraceElement traceElement); static DeniedByAcl deniedByAcl(String aclName); static DeniedByAcl deniedByAcl(String aclName, @Nullable TraceElement traceElement); static final FalseExpr FALSE; static final OriginatingFromDevice ORIGINATING_FROM_DEVICE; static final TrueExpr TRUE; static final AclLineMatchExpr NEW_FLOWS; }