Package org.ec4j.core.parser
Class Span
java.lang.Object
org.ec4j.core.parser.Span
- Direct Known Subclasses:
ErrorEvent,Span.GlobSpan,Span.NameSpan,Span.ValueSpan
A pair of start and end
Locations. This class aggregates a few Span subclasses to be able to store
multiple Spans in one model element, such as Span.NameSpan and Span.ValueSpan in a Property.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classASpanbuilder.static classstatic classstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
end
-
start
-
-
Constructor Details
-
Span
-
-
Method Details
-
builder
- Returns:
- a new
Span.Builder
-
parse
Parses aSpanfrom aStringthat has the format defined bytoString(). Should make it easier to write tests.- Parameters:
spanString- the span string to parse- Returns:
- a new
Spanparsed out of the givenspanString
-
equals
-
getEnd
-
getStart
-
hashCode
public int hashCode() -
toString
-