|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
S - The real "source" (for instance, file, URL, etc).public interface SourceIfc<S>
Defines a source: meaning, the place from which something was defined as well
as the line and column number where found. For instance, consider data
contained in a file: the source defines three attributes - the file itself, the
line number and column number in the file.
For an example implementation and usage, please refer to
DefaultSource.
Modifications:
$Date: 2008-12-02 12:32:45 -0500 (Tue, 02 Dec 2008) $
$Revision: 479 $
$Author: sfloess $
$HeadURL: https://jplate.svn.sourceforge.net/svnroot/jplate/trunk/src/dev/java/org/jplate/foundation/source/SourceIfc.java $
DefaultSource| Field Summary | |
|---|---|
static int |
UNKNOWN_COLUMN
Defines no known column in source. |
static int |
UNKNOWN_LINE
Defines no known line in source. |
| Method Summary | |
|---|---|
int |
getColumn()
Returns the column number in getSource(). |
int |
getLine()
Returns the line number in getSource(). |
S |
getSource()
Returns the actual "source." For instance if a source is defined by a File, the file represents the actual source. |
| Methods inherited from interface org.jplate.foundation.FormattableIfc |
|---|
toString |
| Field Detail |
|---|
static final int UNKNOWN_LINE
static final int UNKNOWN_COLUMN
| Method Detail |
|---|
S getSource()
int getLine()
getSource().
int getColumn()
getSource().
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||