|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object | +--intradoc.common.GrammarElement
Holds information about node in the evaluation tree for a grammatical expression.
| Field Summary | |
static int |
DATE_VAL
Content type can be parsed into a date. |
static int |
EVAL
Grammar element type evaluate (substitute from application data). |
static int |
FLOAT_VAL
Content type can be parsed into a float. |
static int |
FUNCTION
Grammar element type function call. |
static int |
INTEGER_VAL
Content type can be parsed into an integer. |
static int |
LITERAL
Grammar element type literal value. |
java.lang.String |
m_id
Name or identifier of element. |
int |
m_idContentType
Content type. |
int |
m_lineCharOffset
Offset from the beginning of current line in string that was parsed to create this GrammarElement. |
int |
m_parseLength
Length of substring that was parsed to create this GrammarElement. |
int |
m_parseLines
Number of lines that have been parsed since the beginning of string that was used to create this GrammarElement. |
int |
m_priority
If an operator, this is the precedence order. |
GrammarElement[] |
m_subElementArray
Used to speed up processing, especially in HPUX. |
protected java.util.Vector |
m_subElements
Array of subelements. |
int |
m_type
Element type. |
java.lang.String |
m_uniOperator
Uni operators (operators with one parameter) do not use the array of sub elements. |
char |
m_xxOpFirstChar
First character of operator if element is an operator. |
char |
m_xxOpSecondChar
Second character of operator if element is an operator. |
static int |
MULTI
Grammar element multi-item. |
static int |
OPERATOR
Grammar element type operator. |
static int |
STRING_VAL
Content type can only be a string. |
| Constructor Summary | |
GrammarElement()
Constructor to apply standard defaults. |
|
GrammarElement(java.lang.String id,
int type,
int line,
int offset,
int length)
Constructor to create an element of a particular type, id, offset, and length. |
|
| Method Summary | |
void |
appendSubElementStr(java.lang.StringBuffer buf,
java.util.Vector subElements,
java.lang.String separator)
|
java.lang.String |
toString()
Creates string representation of nested structure. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int EVAL
public static final int LITERAL
public static final int FUNCTION
public static final int OPERATOR
public static final int MULTI
public static final int STRING_VAL
public static final int INTEGER_VAL
public static final int FLOAT_VAL
public static final int DATE_VAL
public java.lang.String m_id
public int m_type
public int m_idContentType
public int m_priority
protected java.util.Vector m_subElements
public GrammarElement[] m_subElementArray
public java.lang.String m_uniOperator
public int m_parseLines
public int m_lineCharOffset
public int m_parseLength
public char m_xxOpFirstChar
public char m_xxOpSecondChar
| Constructor Detail |
public GrammarElement()
public GrammarElement(java.lang.String id,
int type,
int line,
int offset,
int length)
| Method Detail |
public java.lang.String toString()
toString in class java.lang.Object
public void appendSubElementStr(java.lang.StringBuffer buf,
java.util.Vector subElements,
java.lang.String separator)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
(c) 1996-2005 All rights reserved. Stellent, Inc. |