站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

LiteralRestrictionDescr (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.lang.descr
Class LiteralRestrictionDescr

java.lang.Object
  extended by org.drools.lang.descr.BaseDescr
      extended by org.drools.lang.descr.RestrictionDescr
          extended by org.drools.lang.descr.LiteralRestrictionDescr
All Implemented Interfaces:
Serializable

public class LiteralRestrictionDescr
extends RestrictionDescr

This represents a literal node in the rule language. This is a constraint on a single field of a pattern. The "text" contains the content, which may also be an enumeration.

See Also:
Serialized Form

Constructor Summary
LiteralRestrictionDescr(String evaluator, String text)
           
LiteralRestrictionDescr(String evaluator, String text, boolean staticFieldValue)
           
 
Method Summary
 String getEvaluator()
           
 String getText()
           
 boolean isStaticFieldValue()
           
 String toString()
           
 
Methods inherited from class org.drools.lang.descr.BaseDescr
getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getStartCharacter, setEndCharacter, setEndLocation, setLocation, setStartCharacter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LiteralRestrictionDescr

public LiteralRestrictionDescr(String evaluator,
                               String text)

LiteralRestrictionDescr

public LiteralRestrictionDescr(String evaluator,
                               String text,
                               boolean staticFieldValue)
Method Detail

isStaticFieldValue

public boolean isStaticFieldValue()

getEvaluator

public String getEvaluator()

getText

public String getText()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2001-2007 JBoss Inc.. All Rights Reserved.