public interface ISourceFragment
ISourceFragment
represents a fragment of source code.
These are currently used only in MXML processing, where fragments are created for entities, comments, the beginning and end of CDATA, and the text between these.
The "physical" properties of a fragment describe how it actually appears in the source code. For example, the physical text of an entity might be "<" and its physical starting offset, line number, and column number would indicate its position within an MXML document. Note that the physical end is the physical start plus the length of the physical text.
The "logical" properties of a fragment describe what it means after MXML pre-processing (entity evaluation, CDATA removal, MXML comment removal).
Modifier and Type | Method and Description |
---|---|
String |
getLogicalText()
Gets the post-processed text for this fragment.
|
int |
getPhysicalColumn()
Gets the column number where this fragment originally appeared in the file.
|
int |
getPhysicalLine()
Gets the line number where this fragment originally appeared in the file.
|
int |
getPhysicalStart()
Gets the starting offset where this fragment originally appeared in the file.
|
String |
getPhysicalText()
Gets the original text for this fragment, as it originally appeared in the file.
|
String getPhysicalText()
String getLogicalText()
int getPhysicalStart()
int getPhysicalLine()
int getPhysicalColumn()
Copyright © 2016 The Apache Software Foundation. All rights reserved.