public class CastRulePredicate extends Object
CastRule
, the runtime checks if a particular rule matches the tuple
of input and target type using this class. In particular, a rule is applied if:
getTargetTypeRoots()
includes the DataTypeRoot
of target type and either
getInputTypeRoots()
includes the DataTypeRoot
of input type or
getInputTypeFamilies()
includes one of the DataTypeFamily
of input
type
getTargetTypeFamilies()
includes one of the DataTypeFamily
of target
type and either
getInputTypeRoots()
includes the DataTypeRoot
of input type or
getInputTypeFamilies()
includes one of the DataTypeFamily
of input
type
Modifier and Type | Class and Description |
---|---|
static class |
CastRulePredicate.Builder
Builder for the
CastRulePredicate . |
Modifier and Type | Method and Description |
---|---|
static CastRulePredicate.Builder |
builder() |
Set<DataTypeFamily> |
getInputTypeFamilies() |
Set<DataTypeRoot> |
getInputTypeRoots() |
Set<DataTypeFamily> |
getTargetTypeFamilies() |
Set<DataTypeRoot> |
getTargetTypeRoots() |
Set<DataType> |
getTargetTypes() |
public Set<DataTypeRoot> getInputTypeRoots()
public Set<DataTypeRoot> getTargetTypeRoots()
public Set<DataTypeFamily> getInputTypeFamilies()
public Set<DataTypeFamily> getTargetTypeFamilies()
public static CastRulePredicate.Builder builder()
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.