public interface IMXMLUnitData extends ISourceLocation
UNKNOWN
Modifier and Type | Method and Description |
---|---|
boolean |
containsOffset(int offset)
Does this unit contain the given offset (excluding start and including
end)?
|
IMXMLTagData |
getContainingTag(int offset)
Get the nearest containing tag.
|
int |
getContentEnd()
Returns the offset after the last character of actual content.
|
int |
getContentStart()
Returns the first character of the actual content of the unit For most
units this is the same as getStart(), but for things like tags which have
"junk punctuation" around them,
SourceLocation.getAbsoluteStart()
will return the junk punctuation, whereas getContentStart will get the
content inside the punctuation. |
int |
getIndex()
Get this unit's position in the
IMXMLData . |
MXMLDialect |
getMXMLDialect()
Returns the MXML dialect used in the MXML document that contains this
unit.
|
IMXMLUnitData |
getNext()
Gets the next MXML unit.
|
IMXMLUnitData |
getNextSiblingUnit()
Gets the next sibling unit after this unit.
|
IMXMLTagData |
getNextTag()
Gets the next tag.
|
IMXMLData |
getParent()
Gets the
IMXMLData representing the MXML document that contains
this unit. |
IMXMLUnitData |
getParentUnitData()
Gets the
IMXMLUnitData which is the hierarchical parent of this
unit in its parents array of IMXMLUnitData objects |
IMXMLUnitData |
getPrevious()
Gets the previous MXML unit.
|
IFileSpecification |
getSource()
Gets the source file that contains this unit.
|
boolean |
isCloseTag()
Is this MXML unit an close tag?
|
boolean |
isOpenAndNotEmptyTag()
Is this MXML unit an open tag and not an empty tag (i.e. only
<foo>, not <foo;/>)?
|
boolean |
isOpenTag()
Is this MXML unit an open tag?
|
boolean |
isTag()
Is this MXML unit a tag?
|
boolean |
isText()
Is this MXML unit a block of text?
|
getAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStart
IFileSpecification getSource()
IFileSpecification
representing the source file.IMXMLData getParent()
IMXMLData
representing the MXML document that contains
this unit.IMXMLData
that contains this unit.MXMLDialect getMXMLDialect()
MXMLDialect
object.int getIndex()
IMXMLData
.boolean containsOffset(int offset)
IMXMLUnitData getParentUnitData()
IMXMLUnitData
which is the hierarchical parent of this
unit in its parents array of IMXMLUnitData objectsIMXMLUnitData
or null
.IMXMLTagData getContainingTag(int offset)
boolean isText()
boolean isTag()
boolean isOpenTag()
boolean isOpenAndNotEmptyTag()
boolean isCloseTag()
int getContentStart()
SourceLocation.getAbsoluteStart()
will return the junk punctuation, whereas getContentStart will get the
content inside the punctuation.int getContentEnd()
getContentStart()
for more.IMXMLUnitData getNext()
IMXMLUnitData getNextSiblingUnit()
null
.IMXMLTagData getNextTag()
IMXMLUnitData getPrevious()
Copyright © 2016 The Apache Software Foundation. All rights reserved.