org.drools.eclipse.editors.completion
Class CompletionContext

java.lang.Object
  extended by 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.


Constructor Summary
CompletionContext(String backText)
           
 
Method Summary
 org.drools.lang.Location getLocation()
           
 String getRuleName()
           
 Map<String,String[]> getRuleParameters()
          Returns the variables defined in the given rule (fragment).
 boolean isDefaultDialect()
           
 boolean isJavaDialect()
           
 boolean isMvelDialect()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompletionContext

public CompletionContext(String backText)
Method Detail

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.