Package org.jsoup.nodes
Class Range.AttributeRange
java.lang.Object
org.jsoup.nodes.Range.AttributeRange
- Enclosing class:
- Range
-
Constructor Summary
ConstructorsConstructorDescriptionAttributeRange(Range nameRange, Range valueRange) Deprecated.Use parser position tracking instead. -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()booleanTests if this attribute range has tracked name and value offsets.Get the source range for the attribute's name.toString()Get a String representation of this Attribute range, in the formline,column:pos-line,column:pos=line,column:pos-line,column:pos(name start - name end = val start - val end)Get the source range for the attribute's value.
-
Constructor Details
-
AttributeRange
Deprecated.Use parser position tracking instead. Will be removed in jsoup 1.24.1.Deprecated parser-internal source range setup method, retained for source compatibility. Source ranges are normally produced by enabling parser position tracking before parsing. If either supplied Range is untracked, this AttributeRange will also be untracked.
-
-
Method Details
-
nameRange
Get the source range for the attribute's name. -
valueRange
Get the source range for the attribute's value. -
isTracked
Tests if this attribute range has tracked name and value offsets.- Returns:
- true if the attribute's name and value ranges were tracked; false otherwise.
- Since:
- 1.23.1
-
toString
Get a String representation of this Attribute range, in the formline,column:pos-line,column:pos=line,column:pos-line,column:pos(name start - name end = val start - val end) -
equals
-
hashCode
-