public final class DroolsGenuineMetadata<A> extends Object implements DroolsMetadata<A,A>
| Modifier and Type | Method and Description |
|---|---|
org.drools.model.PatternDSL.PatternDef<A> |
buildPattern()
A pattern is a way of accessing the variable in Drools.
|
A |
extract(A container)
Extract variable value from the rule.
|
org.drools.model.Declaration<A> |
getVariableDeclaration() |
DroolsGenuineMetadata<A> |
substitute(Supplier<org.drools.model.PatternDSL.PatternDef<A>> patternBuilder)
Create new
DroolsMetadata, where its pattern will be different. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitofGenuine, ofInferred, ofInferredpublic A extract(A container)
DroolsMetadataFunction.identity().
For inferred variables, this will refer to the DroolsLogicalTuple.getItem(int).extract in interface DroolsMetadata<A,A>container - the variable from Drools on which to operatepublic org.drools.model.Declaration<A> getVariableDeclaration()
getVariableDeclaration in interface DroolsMetadata<A,A>public org.drools.model.PatternDSL.PatternDef<A> buildPattern()
DroolsMetadatabuildPattern in interface DroolsMetadata<A,A>public DroolsGenuineMetadata<A> substitute(Supplier<org.drools.model.PatternDSL.PatternDef<A>> patternBuilder)
DroolsMetadataDroolsMetadata, where its pattern will be different.substitute in interface DroolsMetadata<A,A>patternBuilder - the new pattern to be returned by DroolsMetadata.buildPattern(). Typically reuses the parent
pattern with some modifications.DroolsMetadata.Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.