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
Modifier and TypeFieldDescriptionstatic int
The default begin line value.static int
The default begin column value.static int
The default begin column value.static int
The default end line value. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the begin column of the file where this object appears.int
Returns the begin line of the file where this object appear.int
Returns the end column of the file where this object appears.int
Returns the end line of the file where this object appears.void
setBegin(fr.uga.pddl4j.parser.lexer.Token begin)
Sets the begin line and column of the expression from a specified token.void
setBeginColumn(int beginColumn)
Sets the begin column of the file where this object appears.void
setBeginLine(int beginLine)
Sets the begin line of the file where this object appear.void
setEnd(fr.uga.pddl4j.parser.lexer.Token end)
Sets the end line and column of the expression from a specified token.void
setEndColumn(int endColumn)
Sets the end column of the file where this object appears.void
setEndLine(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_LINE
indicates that the attribute was not initialized.- Returns:
- the begin line of the file where this object appear or
DEFAULT_BEGIN_LINE
if 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_LINE
indicates that the attribute was not initialized.- Returns:
- the begin column of the file where this object appears or
DEFAULT_END_LINE
if 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_COLUMN
indicates that the attribute was not initialized.- Returns:
- the end line of the file where this object appears or
DEFAULT_BEGING_COLUM
if 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_COLUMN
indicates that the attribute was not initialized.- Returns:
- the end column of the file where this object appears or
DEFAULT_END_COLUMN
if 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.
-