Package fr.uga.pddl4j.parser
Interface ParsedObject
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
ParsedOperator
- All Known Implementing Classes:
AbstractParsedObject,ParsedAbstractOperator,ParsedAction,ParsedDerivedPredicate,ParsedMethod
This interface implements the common methods of all object produced by the parser.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intThe default begin line value.static intThe default begin column value.static intThe default begin column value.static intThe default end line value. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the begin column of the file where this object appears.intReturns the begin line of the file where this object appear.intReturns the end column of the file where this object appears.intReturns the end line of the file where this object appears.voidsetBegin(fr.uga.pddl4j.parser.lexer.Token begin)Sets the begin line and column of the expression from a specified token.voidsetBeginColumn(int beginColumn)Sets the begin column of the file where this object appears.voidsetBeginLine(int beginLine)Sets the begin line of the file where this object appear.voidsetEnd(fr.uga.pddl4j.parser.lexer.Token end)Sets the end line and column of the expression from a specified token.voidsetEndColumn(int endColumn)Sets the end column of the file where this object appears.voidsetEndLine(int endLine)Sets the end line of the file where this object appears.
-
Field Details
-
DEFAULT_BEGIN_LINE
static final int DEFAULT_BEGIN_LINEThe default begin line value.- See Also:
- Constant Field Values
-
DEFAULT_END_LINE
static final int DEFAULT_END_LINEThe default end line value.- See Also:
- Constant Field Values
-
DEFAULT_BEGING_COLUMN
static final int DEFAULT_BEGING_COLUMNThe default begin column value.- See Also:
- Constant Field Values
-
DEFAULT_END_COLUMN
static final int DEFAULT_END_COLUMNThe default begin column value.- See Also:
- Constant Field Values
-
-
Method Details
-
getBeginLine
int getBeginLine()Returns the begin line of the file where this object appear. The return valueDEFAULT_BEGIN_LINEindicates that the attribute was not initialized.- Returns:
- the begin line of the file where this object appear or
DEFAULT_BEGIN_LINEif it was not initialized.
-
setBeginLine
void setBeginLine(int beginLine)Sets the begin line of the file where this object appear.- Parameters:
beginLine- the begin line of the object in the file.
-
getBeginColumn
int getBeginColumn()Returns the begin column of the file where this object appears. The return valueDEFAULT_END_LINEindicates that the attribute was not initialized.- Returns:
- the begin column of the file where this object appears or
DEFAULT_END_LINEif it was not initialized.
-
setBeginColumn
void setBeginColumn(int beginColumn)Sets the begin column of the file where this object appears.- Parameters:
beginColumn- the begin column of the file where this object appear.
-
getEndLine
int getEndLine()Returns the end line of the file where this object appears. The return valueDEFAULT_BEGING_COLUMNindicates that the attribute was not initialized.- Returns:
- the end line of the file where this object appears or
DEFAULT_BEGING_COLUMif it was not initialized.
-
setEndLine
void setEndLine(int endLine)Sets the end line of the file where this object appears.- Parameters:
endLine- the end line of the file where this object appears.
-
getEndColumn
int getEndColumn()Returns the end column of the file where this object appears. The return valueDEFAULT_END_COLUMNindicates that the attribute was not initialized.- Returns:
- the end column of the file where this object appears or
DEFAULT_END_COLUMNif it was not initialized.
-
setEndColumn
void setEndColumn(int endColumn)Sets the end column of the file where this object appears.- Parameters:
endColumn- the end column of the file where this object appears.
-
setBegin
void setBegin(fr.uga.pddl4j.parser.lexer.Token begin)Sets the begin line and column of the expression from a specified token.- Parameters:
begin- the first token of the expression.
-
setEnd
void setEnd(fr.uga.pddl4j.parser.lexer.Token end)Sets the end line and column of the expression from a specified token.- Parameters:
end- the last token of the expression.
-