public interface VarPatternAdmin extends PatternAdmin, VarPattern
VarPattern| Modifier and Type | Method and Description |
|---|---|
default VarPatternAdmin |
asVar() |
Optional<ConceptId> |
getId() |
Collection<VarPatternAdmin> |
getImplicitInnerVars()
Get all inner variables, including implicit variables such as in a has property
|
Collection<VarPatternAdmin> |
getInnerVars() |
String |
getPrintableName() |
java.util.stream.Stream<VarProperty> |
getProperties()
Get a stream of all properties on this variable
|
<T extends VarProperty> |
getProperties(Class<T> type)
Get a stream of all properties of a particular type on this variable
|
<T extends UniqueVarProperty> |
getProperty(Class<T> type)
Get a unique property of a particular type on this variable, if it exists
|
Optional<Label> |
getTypeLabel() |
Set<Label> |
getTypeLabels() |
Var |
getVarName() |
<T extends VarProperty> |
hasProperty(Class<T> type)
Get whether this
VarPattern has a VarProperty of the given type |
default boolean |
isVar() |
<T extends VarProperty> |
mapProperty(Class<T> type,
java.util.function.UnaryOperator<T> mapper)
Return this
VarPattern with instances of the given VarProperty modified. |
VarPatternAdmin |
setVarName(Var name) |
asConjunction, asDisjunction, commonVarNames, getDisjunctiveNormalForm, getVars, isConjunction, isDisjunctiondefault boolean isVar()
isVar in interface PatternAdminPatternAdmin is a VarPatternAdmindefault VarPatternAdmin asVar()
asVar in interface PatternAdminPatternAdmin as a VarPatternAdmin, if it is one.@CheckReturnValue Var getVarName()
@CheckReturnValue VarPatternAdmin setVarName(Var name)
name - the new variable name of this variable@CheckReturnValue java.util.stream.Stream<VarProperty> getProperties()
@CheckReturnValue <T extends VarProperty> java.util.stream.Stream<T> getProperties(Class<T> type)
T - the type of VarProperty to returntype - the class of VarProperty to return@CheckReturnValue <T extends UniqueVarProperty> Optional<T> getProperty(Class<T> type)
T - the type of VarProperty to returntype - the class of VarProperty to return@CheckReturnValue <T extends VarProperty> boolean hasProperty(Class<T> type)
VarPattern has a VarProperty of the given typeT - the type of the VarPropertytype - the type of the VarPropertyVarPattern has a VarProperty of the given type@CheckReturnValue <T extends VarProperty> VarPatternAdmin mapProperty(Class<T> type, java.util.function.UnaryOperator<T> mapper)
VarPattern with instances of the given VarProperty modified.T - the type of the VarPropertytype - the type of the VarPropertyVarPattern has a VarProperty of the given type@CheckReturnValue Optional<ConceptId> getId()
@CheckReturnValue Optional<Label> getTypeLabel()
@CheckReturnValue Collection<VarPatternAdmin> getInnerVars()
@CheckReturnValue Collection<VarPatternAdmin> getImplicitInnerVars()
@CheckReturnValue Set<Label> getTypeLabels()
@CheckReturnValue String getPrintableName()
Copyright © 2017 Grakn Labs Ltd. All rights reserved.