Class AbstractJavaContainerBlockDescr
- java.lang.Object
-
- org.drools.compiler.rule.builder.dialect.java.parser.AbstractJavaContainerBlockDescr
-
- All Implemented Interfaces:
JavaBlockDescr,JavaContainerBlockDescr
- Direct Known Subclasses:
JavaCatchBlockDescr,JavaElseBlockDescr,JavaFinalBlockDescr,JavaForBlockDescr,JavaIfBlockDescr,JavaRootBlockDescr,JavaTryBlockDescr,JavaWhileBlockDescr
public abstract class AbstractJavaContainerBlockDescr extends Object implements JavaContainerBlockDescr
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.drools.compiler.rule.builder.dialect.java.parser.JavaBlockDescr
JavaBlockDescr.BlockType
-
-
Constructor Summary
Constructors Constructor Description AbstractJavaContainerBlockDescr()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddJavaBlockDescr(JavaBlockDescr descr)Map<String,Class<?>>getInputs()List<JavaLocalDeclarationDescr>getInScopeLocalVars()Returns the list of in-code, declared variables that are available in the scope of this blockList<JavaBlockDescr>getJavaBlockDescrs()voidsetInputs(Map<String,Class<?>> variables)voidsetInScopeLocalVars(List<JavaLocalDeclarationDescr> inScopeLocalVars)Sets the list of in-code, declared variables that are available in the scope of this block-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.drools.compiler.rule.builder.dialect.java.parser.JavaBlockDescr
getEnd, getStart, getTargetExpression, getType, setTargetExpression
-
-
-
-
Method Detail
-
getJavaBlockDescrs
public List<JavaBlockDescr> getJavaBlockDescrs()
- Specified by:
getJavaBlockDescrsin interfaceJavaContainerBlockDescr
-
addJavaBlockDescr
public void addJavaBlockDescr(JavaBlockDescr descr)
- Specified by:
addJavaBlockDescrin interfaceJavaContainerBlockDescr
-
getInputs
public Map<String,Class<?>> getInputs()
- Specified by:
getInputsin interfaceJavaBlockDescr
-
setInputs
public void setInputs(Map<String,Class<?>> variables)
- Specified by:
setInputsin interfaceJavaBlockDescr
-
getInScopeLocalVars
public List<JavaLocalDeclarationDescr> getInScopeLocalVars()
Returns the list of in-code, declared variables that are available in the scope of this block- Specified by:
getInScopeLocalVarsin interfaceJavaBlockDescr- Returns:
-
setInScopeLocalVars
public void setInScopeLocalVars(List<JavaLocalDeclarationDescr> inScopeLocalVars)
Sets the list of in-code, declared variables that are available in the scope of this block- Specified by:
setInScopeLocalVarsin interfaceJavaBlockDescr
-
-