public class DroolsSentence extends Object
Constructor and Description |
---|
DroolsSentence() |
Modifier and Type | Method and Description |
---|---|
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
|
public DroolsSentenceType getType()
DroolsSentenceType
public void setType(DroolsSentenceType type)
type
- sentence typeDroolsSentenceType
public int getStartOffset()
public void setStartOffset(int startOffset)
startOffset
- start char offsetpublic int getEndOffset()
public void setEndOffset(int endOffset)
endOffset
- end char offsetpublic LinkedList getContent()
public void reverseContent()
public void addContent(DroolsToken token)
token
- token to be storedpublic void addContent(int contextInfo)
contextInfo
- location identifierLocation
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.