Package org.drools.traits.core.metadata
Class NewInstanceLiteral<T extends Metadatable>
- java.lang.Object
-
- org.drools.traits.core.metadata.AbstractWMTask<T>
-
- org.drools.traits.core.metadata.NewInstanceLiteral<T>
-
- All Implemented Interfaces:
Serializable,Identifiable,MetaCallableTask<T>,NewInstance<T>,WorkingMemoryTask<T>
public abstract class NewInstanceLiteral<T extends Metadatable> extends AbstractWMTask<T> implements NewInstance<T>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.drools.traits.core.metadata.MetaCallableTask
MetaCallableTask.KIND
-
-
Constructor Summary
Constructors Constructor Description NewInstanceLiteral(Object identifier, With... args)NewInstanceLiteral(With... args)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Tcall()protected abstract Objectconstruct()ObjectgetId()ModifyLiteral<T>getSetters()TgetTarget()ObjectgetTargetId()URIgetUri()inthashCode()booleanisInterface()MetaCallableTask.KINDkind()-
Methods inherited from class org.drools.traits.core.metadata.AbstractWMTask
equals
-
-
-
-
Field Detail
-
uri
protected URI uri
-
result
protected T extends Metadatable result
-
setter
protected ModifyLiteral setter
-
with
protected With[] with
-
-
Method Detail
-
isInterface
public boolean isInterface()
- Specified by:
isInterfacein interfaceNewInstance<T extends Metadatable>
-
kind
public MetaCallableTask.KIND kind()
- Specified by:
kindin interfaceMetaCallableTask<T extends Metadatable>
-
getTargetId
public Object getTargetId()
- Specified by:
getTargetIdin interfaceWorkingMemoryTask<T extends Metadatable>
-
call
public T call()
- Specified by:
callin interfaceMetaCallableTask<T extends Metadatable>
-
construct
protected abstract Object construct()
-
getUri
public URI getUri()
- Specified by:
getUriin interfaceIdentifiable
-
getId
public Object getId()
- Specified by:
getIdin interfaceIdentifiable
-
getSetters
public ModifyLiteral<T> getSetters()
- Specified by:
getSettersin interfaceWorkingMemoryTask<T extends Metadatable>
-
getTarget
public T getTarget()
- Specified by:
getTargetin interfaceWorkingMemoryTask<T extends Metadatable>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractWMTask<T extends Metadatable>
-
-