private static class SubstitutionVisitor.InternalOperand extends SubstitutionVisitor.Operand
SubstitutionVisitor.UnifyRule
that matches a relational expression of a
given type. It has zero or more child operands.Modifier and Type | Field and Description |
---|---|
private java.util.List<SubstitutionVisitor.Operand> |
inputs |
clazz
Constructor and Description |
---|
InternalOperand(java.lang.Class<? extends MutableRel> clazz,
java.util.List<SubstitutionVisitor.Operand> inputs) |
Modifier and Type | Method and Description |
---|---|
private static boolean |
allMatch(SubstitutionVisitor visitor,
java.util.List<SubstitutionVisitor.Operand> operands,
java.util.List<MutableRel> rels) |
private static boolean |
allWeaker(SubstitutionVisitor visitor,
java.util.List<SubstitutionVisitor.Operand> operands,
java.util.List<MutableRel> rels) |
boolean |
isWeaker(SubstitutionVisitor visitor,
MutableRel rel) |
boolean |
matches(SubstitutionVisitor visitor,
MutableRel rel) |
private final java.util.List<SubstitutionVisitor.Operand> inputs
InternalOperand(java.lang.Class<? extends MutableRel> clazz, java.util.List<SubstitutionVisitor.Operand> inputs)
public boolean matches(SubstitutionVisitor visitor, MutableRel rel)
matches
in class SubstitutionVisitor.Operand
public boolean isWeaker(SubstitutionVisitor visitor, MutableRel rel)
isWeaker
in class SubstitutionVisitor.Operand
private static boolean allMatch(SubstitutionVisitor visitor, java.util.List<SubstitutionVisitor.Operand> operands, java.util.List<MutableRel> rels)
private static boolean allWeaker(SubstitutionVisitor visitor, java.util.List<SubstitutionVisitor.Operand> operands, java.util.List<MutableRel> rels)
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.