org.drools.eclipse.core
Class DroolsElement

java.lang.Object
  extended by org.drools.eclipse.core.DroolsElement
Direct Known Subclasses:
Expander, Function, Global, Import, Package, Process, Query, Rule, RuleAttribute, RuleGroup, RuleSet, Template

public abstract class DroolsElement
extends Object

This represents a drools model element. It is linked to its direct parents and its children. If relevant, Drools model elements refer to the file they are defined in and the offset and length of that element in the file.


Field Summary
static int ACTIVATION_GROUP
           
static int AGENDA_GROUP
           
static int DEFAULT_RULE_GROUP
           
static int EXPANDER
           
static int FUNCTION
           
static int GLOBAL
           
static int IMPORT
           
protected static DroolsElement[] NO_ELEMENTS
           
static int PACKAGE
           
static int PROCESS
           
static int QUERY
           
static int RULE
           
static int RULE_ATTRIBUTE
           
static int RULEFLOW_GROUP
           
static int RULESET
           
static int TEMPLATE
           
 
Constructor Summary
protected DroolsElement(DroolsElement parent)
           
 
Method Summary
abstract  DroolsElement[] getChildren()
           
 org.eclipse.core.resources.IFile getFile()
           
 int getLength()
           
 int getOffset()
           
 DroolsElement getParent()
           
abstract  int getType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RULESET

public static final int RULESET
See Also:
Constant Field Values

PACKAGE

public static final int PACKAGE
See Also:
Constant Field Values

RULE

public static final int RULE
See Also:
Constant Field Values

QUERY

public static final int QUERY
See Also:
Constant Field Values

FUNCTION

public static final int FUNCTION
See Also:
Constant Field Values

TEMPLATE

public static final int TEMPLATE
See Also:
Constant Field Values

EXPANDER

public static final int EXPANDER
See Also:
Constant Field Values

GLOBAL

public static final int GLOBAL
See Also:
Constant Field Values

IMPORT

public static final int IMPORT
See Also:
Constant Field Values

RULE_ATTRIBUTE

public static final int RULE_ATTRIBUTE
See Also:
Constant Field Values

PROCESS

public static final int PROCESS
See Also:
Constant Field Values

DEFAULT_RULE_GROUP

public static final int DEFAULT_RULE_GROUP
See Also:
Constant Field Values

ACTIVATION_GROUP

public static final int ACTIVATION_GROUP
See Also:
Constant Field Values

AGENDA_GROUP

public static final int AGENDA_GROUP
See Also:
Constant Field Values

RULEFLOW_GROUP

public static final int RULEFLOW_GROUP
See Also:
Constant Field Values

NO_ELEMENTS

protected static final DroolsElement[] NO_ELEMENTS
Constructor Detail

DroolsElement

protected DroolsElement(DroolsElement parent)
Method Detail

getType

public abstract int getType()

getParent

public DroolsElement getParent()

getChildren

public abstract DroolsElement[] getChildren()

getFile

public org.eclipse.core.resources.IFile getFile()

getOffset

public int getOffset()

getLength

public int getLength()


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.