Package | Description |
---|---|
org.jamplate.impl.util |
Common utilities.
|
org.jamplate.model |
A package that specifies that primary components of a processor that uses the
jamplate-style processing.
|
Modifier and Type | Method and Description |
---|---|
static @Nullable Reference |
Parsing.parseFirst(@NotNull Tree tree,
@NotNull java.util.regex.Pattern pattern,
int zIndex)
Parse the first range matching the given
pattern in the given tree . |
Modifier and Type | Method and Description |
---|---|
@NotNull Reference |
Tree.reference()
Get the reference of this tree.
|
@NotNull Reference |
Reference.subReference(int position)
Slice this reference from the given
position to the end of this reference. |
@NotNull Reference |
Reference.subReference(int position,
int length)
Slice this reference from the given
position and limit it with the given
length . |
Modifier and Type | Method and Description |
---|---|
int |
Reference.compareTo(@NotNull Reference reference)
A reference is greater that another reference when it has a position less that the
other.
|
static @Nullable Relation |
Relation.compute(@NotNull Reference reference,
int s,
int e)
Calculate the direction from the given
reference to the area [s,
e) . |
static @NotNull Intersection |
Intersection.compute(@NotNull Reference reference,
int s,
int e)
Calculate what is the intersection between the given
reference and the
given area [s, e) . |
static @NotNull Dominance |
Dominance.compute(@NotNull Reference reference,
int s,
int e)
Calculate how much dominant the area
[s, e) is over the given reference . |
static @Nullable Relation |
Relation.compute(@NotNull Reference reference,
@NotNull Reference other)
Calculate the direction from the given
reference to the other . |
static @Nullable Relation |
Relation.compute(@NotNull Reference reference,
@NotNull Reference other)
Calculate the direction from the given
reference to the other . |
static @NotNull Intersection |
Intersection.compute(@NotNull Reference reference,
@NotNull Reference other)
Calculate the intersection between the references
reference and other . |
static @NotNull Intersection |
Intersection.compute(@NotNull Reference reference,
@NotNull Reference other)
Calculate the intersection between the references
reference and other . |
static @NotNull Dominance |
Dominance.compute(@NotNull Reference reference,
@NotNull Reference other)
Calculate how much dominant the
other reference over the given reference . |
static @NotNull Dominance |
Dominance.compute(@NotNull Reference reference,
@NotNull Reference other)
Calculate how much dominant the
other reference over the given reference . |
static @Nullable Relation |
Relation.compute(@NotNull Tree tree,
@NotNull Reference other)
Calculate the direction from the given
sketch to the other . |
static @NotNull Intersection |
Intersection.compute(@NotNull Tree tree,
@NotNull Reference other)
Calculate the intersection between the sketches
sketch and other . |
static @NotNull Dominance |
Dominance.compute(@NotNull Tree tree,
@NotNull Reference other)
Calculate how much dominant the
other reference over the given sketch . |
default @NotNull java.io.InputStream |
Document.openInputStream(@NotNull Reference reference)
Open a new input-stream that reads the content at the given
reference in
this document. |
default @NotNull java.io.Reader |
Document.openReader(@NotNull Reference reference)
Open a new reader that reads the content at the given
reference in this
document. |
default @NotNull java.lang.CharSequence |
Document.read(@NotNull Reference reference)
Read the content at the given
reference in this document. |
Constructor and Description |
---|
Tree(@NotNull Document document,
@NotNull Reference reference)
Construct a new tree with the given
reference . |
Tree(@NotNull Document document,
@NotNull Reference reference,
int zIndex)
Construct a new tree with the given
reference . |
Tree(@NotNull Document document,
@NotNull Reference reference,
@NotNull Sketch sketch)
Construct a new tree with the given
reference and the given sketch . |
Tree(@NotNull Document document,
@NotNull Reference reference,
@NotNull Sketch sketch,
int zIndex)
Construct a new tree with the given
reference and the given sketch . |