org.drools.lang
Class DroolsSentence

java.lang.Object
  extended by org.drools.lang.DroolsSentence

public class DroolsSentence
extends Object

Class that represents a DroolsLanguage sentence. To be used by IDE.


Constructor Summary
DroolsSentence()
           
 
Method Summary
 void addContent(DroolsToken token)
          Add a token to the content and sets char offset info
 void addContent(int contextInfo)
          Add a location to the content
 LinkedList getContent()
          getter of sentence content
 int getEndOffset()
          getter for end char offset
 int getStartOffset()
          getter for start char offset
 DroolsSentenceType getType()
          getter of sentence type
 void reverseContent()
          Reverses the content linked list
 void setEndOffset(int endOffset)
          setter for end char offset
 void setStartOffset(int startOffset)
          setter for start char offset
 void setType(DroolsSentenceType type)
          setter of sentence type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DroolsSentence

public DroolsSentence()
Method Detail

getType

public DroolsSentenceType getType()
getter of sentence type

Returns:
sentence type
See Also:
DroolsSentenceType

setType

public void setType(DroolsSentenceType type)
setter of sentence type

Parameters:
type - sentence type
See Also:
DroolsSentenceType

getStartOffset

public int getStartOffset()
getter for start char offset

Returns:
start char offset

setStartOffset

public void setStartOffset(int startOffset)
setter for start char offset

Parameters:
startOffset - start char offset

getEndOffset

public int getEndOffset()
getter for end char offset

Returns:
end char offset

setEndOffset

public void setEndOffset(int endOffset)
setter for end char offset

Parameters:
endOffset - end char offset

getContent

public LinkedList getContent()
getter of sentence content

Returns:
linked list that stores DroolsTokens and Locations

reverseContent

public void reverseContent()
Reverses the content linked list


addContent

public void addContent(DroolsToken token)
Add a token to the content and sets char offset info

Parameters:
token - token to be stored

addContent

public void addContent(int contextInfo)
Add a location to the content

Parameters:
contextInfo - location identifier
See Also:
Location


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