org.drools.lang.descr
Class LiteralDescr

java.lang.Object
  extended by org.drools.lang.descr.BaseDescr
      extended by org.drools.lang.descr.LiteralDescr
All Implemented Interfaces:
Externalizable, Serializable

public class LiteralDescr
extends BaseDescr

See Also:
Serialized Form

Field Summary
static int TYPE_BOOLEAN
           
static int TYPE_NULL
           
static int TYPE_NUMBER
           
static int TYPE_STRING
           
 
Constructor Summary
LiteralDescr()
           
LiteralDescr(String text, int type)
           
 
Method Summary
 String getText()
           
 int getType()
           
 Object getValue()
           
 void setType(int type)
           
 String toString()
           
 
Methods inherited from class org.drools.lang.descr.BaseDescr
getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getStartCharacter, readExternal, setEndCharacter, setEndLocation, setLocation, setStartCharacter, setText, writeExternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_NULL

public static final int TYPE_NULL
See Also:
Constant Field Values

TYPE_NUMBER

public static final int TYPE_NUMBER
See Also:
Constant Field Values

TYPE_STRING

public static final int TYPE_STRING
See Also:
Constant Field Values

TYPE_BOOLEAN

public static final int TYPE_BOOLEAN
See Also:
Constant Field Values
Constructor Detail

LiteralDescr

public LiteralDescr()

LiteralDescr

public LiteralDescr(String text,
                    int type)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getType

public int getType()

setType

public void setType(int type)

getText

public String getText()
Overrides:
getText in class BaseDescr

getValue

public Object getValue()


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