org.drools.eclipse.editors.completion
Class CompletionContext
java.lang.Object
org.drools.eclipse.editors.completion.CompletionContext
public class CompletionContext
- extends Object
A utility class that invokes the DRLParser on some partial drl text, and
provides information back about the context of that parsed drl, such as a
location type, a dialect, and so on.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompletionContext
public CompletionContext(String backText)
isJavaDialect
public boolean isJavaDialect()
isMvelDialect
public boolean isMvelDialect()
isDefaultDialect
public boolean isDefaultDialect()
getLocation
public org.drools.lang.Location getLocation()
getRuleName
public String getRuleName()
getRuleParameters
public Map<String,String[]> getRuleParameters()
- Returns the variables defined in the given rule (fragment).
The key is the name of the variable.
The value is a list of 2 String:
- the first one is the class name of the variable
- the second one is the property of the given class that defines the type of this variable,
note that this property could be nested,
if this property is null then the given class is the type of the variable
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.