public final class DroolsGenuineMetadata<A> extends Object implements DroolsMetadata<A,A>
| Modifier and Type | Method and Description |
|---|---|
<any> |
buildPattern()
A pattern is a way of accessing the variable in Drools.
|
A |
extract(A container)
Extract variable value from the rule.
|
<any> |
getVariableDeclaration() |
DroolsGenuineMetadata<A> |
substitute(Supplier<<any>> 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 <any> getVariableDeclaration()
getVariableDeclaration in interface DroolsMetadata<A,A>public <any> buildPattern()
DroolsMetadatabuildPattern in interface DroolsMetadata<A,A>public DroolsGenuineMetadata<A> substitute(Supplier<<any>> 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.