Package org.ec4j.core.parser
Class Span.Builder
java.lang.Object
org.ec4j.core.parser.Span.Builder
- Enclosing class:
Span
A
Span builder.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the end of theSpan.endIfNeeded(Location end) Sets the end of theSpanunless it was set already.Sets the start of theSpan.
-
Field Details
-
end
-
start
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
buildNameSpan
- Returns:
- a new
Span.NameSpan
-
buildGlobSpan
- Returns:
- a new
Span.GlobSpan
-
buildSpan
- Returns:
- a new
Span.NameSpan
-
buildValueSpan
- Returns:
- a new
Span.ValueSpan
-
end
Sets the end of theSpan.- Parameters:
end- the endLocation- Returns:
- this
Span.Builder
-
endIfNeeded
Sets the end of theSpanunless it was set already.- Parameters:
end- the endLocation- Returns:
- this
Span.Builder
-
start
Sets the start of theSpan.- Parameters:
start- the startLocation- Returns:
- this
Span.Builder
-