Codota Logo
AclLineMatchExpr
Code IndexAdd Codota to your IDE (free)

How to use
AclLineMatchExpr
in
org.batfish.datamodel.acl

Best Java code snippets using org.batfish.datamodel.acl.AclLineMatchExpr (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: batfish/batfish

private BoolExpr toBoolExpr(AclLineMatchExpr matchExpr) {
 return matchExpr.accept(this);
}
origin: batfish/batfish

@Override
protected int compareSameClass(AclLineMatchExpr o) {
 return _operand.compareTo(((NotMatchExpr) o)._operand);
}
origin: batfish/batfish

@Override
public boolean equals(Object o) {
 if (this == o) {
  return true;
 }
 if (!(getClass() == o.getClass())) {
  return false;
 }
 return Objects.equals(_description, ((AclLineMatchExpr) o)._description) && exprEquals(o);
}
origin: batfish/batfish

List<PermittedByAcl> permittedByAclExprs = matchExpr.accept(permittedByAclCollector);
if (!permittedByAclExprs.isEmpty()) {
 Set<String> referencedAcls =
  AclLineMatchExpr sanitizedForIpSpaces = matchExpr.accept(headerSpaceSanitizer);
  if (!matchExpr.equals(sanitizedForIpSpaces)) {
   node.sanitizeLine(index, sanitizedForIpSpaces);
   matchExpr.accept(matchSrcInterfaceCollector);
 Set<String> referencedInterfaces =
   matchSrcInterfaceExprs.stream()
origin: batfish/batfish

  || baseParams.getHeaderSpace().equals(deltaParams.getHeaderSpace());
assert baseParams.getSpecialize() == deltaParams.getSpecialize();
assert baseParams.getSrcNatted().equals(deltaParams.getSrcNatted());
origin: batfish/batfish

 @Override
 public int hashCode() {
  return _matchExpr.hashCode();
 }
}
origin: batfish/batfish

public static HeaderSpace convert(AclLineMatchExpr matchCondition) {
 return matchCondition.accept(INSTANCE);
}
origin: batfish/batfish

@Test
public void testCompareToForDifferentVals() {
 for (int i = 0; i + 1 < EXPRS.length; i++) {
  for (int j = i + 1; j < EXPRS.length; j++) {
   assertThat(EXPRS[i].compareTo(EXPRS[j]), lessThan(0));
  }
 }
}
origin: batfish/batfish

public static AclLineMatchExpr negate(AclLineMatchExpr expr) {
 return expr.accept(INSTANCE);
}
origin: batfish/batfish

default R visit(AclLineMatchExpr expr) {
 return expr.accept(this);
}
origin: batfish/batfish

public BooleanExpr toBooleanExpr(AclLineMatchExpr aclLineMatchExpr) {
 return aclLineMatchExpr.accept(this);
}
origin: batfish/batfish

public static boolean matches(
  AclLineMatchExpr item,
  Flow flow,
  String srcInterface,
  Map<String, IpAccessList> availableAcls,
  Map<String, IpSpace> namedIpSpaces) {
 return item.accept(new Evaluator(flow, srcInterface, availableAcls, namedIpSpaces));
}
origin: batfish/batfish

public Boolean dependsOnSourceInterface(IpAccessList ipAccessList) {
 return ipAccessList.getLines().stream()
   .map(IpAccessListLine::getMatchCondition)
   .anyMatch(expr -> expr.accept(this));
}
origin: batfish/batfish

@Override
public Boolean visitNotMatchExpr(NotMatchExpr notMatchExpr) {
 return notMatchExpr.getOperand().accept(this);
}
origin: batfish/batfish

@Override
public Boolean visitNotMatchExpr(NotMatchExpr notMatchExpr) {
 return !notMatchExpr.getOperand().accept(this);
}
origin: batfish/batfish

@Override
public Boolean visitAndMatchExpr(AndMatchExpr andMatchExpr) {
 return andMatchExpr.getConjuncts().stream().allMatch(c -> c.accept(this));
}
origin: batfish/batfish

@Override
public Boolean visitAndMatchExpr(AndMatchExpr andMatchExpr) {
 return andMatchExpr.getConjuncts().stream().anyMatch(expr -> expr.accept(this));
}
origin: batfish/batfish

@Override
public Boolean visitOrMatchExpr(OrMatchExpr orMatchExpr) {
 return orMatchExpr.getDisjuncts().stream().anyMatch(d -> d.accept(this));
}
origin: batfish/batfish

@Override
public Boolean visitOrMatchExpr(OrMatchExpr orMatchExpr) {
 return orMatchExpr.getDisjuncts().stream().anyMatch(expr -> expr.accept(this));
}
origin: batfish/batfish

/**
 * This method is the public API of the class. It normalizes the input {@link AclLineMatchExpr}.
 */
public static AclLineMatchExpr normalize(IpAccessListToBDD toBDD, AclLineMatchExpr expr) {
 AclLineMatchExprNormalizer normalizer = new AclLineMatchExprNormalizer(toBDD);
 expr.accept(normalizer);
 Set<AclLineMatchExpr> disjuncts =
   normalizer._conjunctsBuilders.stream()
     .filter(conjunctsBuilder -> !conjunctsBuilder.unsat())
     .map(ConjunctsBuilder::build)
     .collect(ImmutableSortedSet.toImmutableSortedSet(Ordering.natural()));
 return disjuncts.contains(TRUE) ? TRUE : or(disjuncts);
}
org.batfish.datamodel.aclAclLineMatchExpr

Most used methods

  • accept
  • compareTo
  • equals
  • exprEquals
  • hashCode

Popular in Java

  • Start an intent from android
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • getExternalFilesDir (Context)
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now