Package | Description |
---|---|
org.jamplate.diagnostic |
All about diagnostic.
|
org.jamplate.impl.analyzer |
A package containing implementations of the interface
Analyzer . |
org.jamplate.impl.compiler |
A package containing implementations of the interface
Compiler . |
org.jamplate.impl.diagnostic |
Default jamplate implementations for the package
org.jamplate.diagnostic . |
org.jamplate.impl.instruction |
A package containing implementations of the interface
Instruction . |
org.jamplate.impl.model |
A package containing implementations of the package
org.jamplate.model . |
org.jamplate.impl.parser |
A package containing implementations of the interface
Parser . |
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.
|
org.jamplate.model.function |
All about processors.
|
Modifier and Type | Method and Description |
---|---|
@NotNull Tree[] |
Message.getCriticalPoints()
Return the critical points trees that caused the error represented by this
message.
|
@NotNull Tree[] |
Message.getStackTrace()
Return the trace of the error.
|
Modifier and Type | Method and Description |
---|---|
boolean |
SequentialAnalyzer.analyze(@NotNull Compilation compilation,
@NotNull Tree tree) |
boolean |
ConditionTransformAnalyzer.analyze(@NotNull Compilation compilation,
@NotNull Tree tree) |
boolean |
RecursiveAnalyzer.analyze(@NotNull Compilation compilation,
@NotNull Tree tree) |
Modifier and Type | Method and Description |
---|---|
@Nullable Instruction |
FilterByKindCompiler.compile(@NotNull Compiler compiler,
@NotNull Compilation compilation,
@NotNull Tree tree) |
@Nullable Instruction |
ToIdleWhitespaceCompiler.compile(@NotNull Compiler compiler,
@NotNull Compilation compilation,
@NotNull Tree tree) |
@Nullable Instruction |
ToReprntConstCompiler.compile(@NotNull Compiler compiler,
@NotNull Compilation compilation,
@NotNull Tree tree) |
@Nullable Instruction |
ToPushConstUnescapeCompiler.compile(@NotNull Compiler compiler,
@NotNull Compilation compilation,
@NotNull Tree tree) |
@Nullable Instruction |
FallbackCompiler.compile(@NotNull Compiler compiler,
@NotNull Compilation compilation,
@NotNull Tree tree) |
@Nullable Instruction |
MandatoryCompiler.compile(@NotNull Compiler compiler,
@NotNull Compilation compilation,
@NotNull Tree tree) |
@Nullable Instruction |
CombineCompiler.compile(@NotNull Compiler compiler,
@NotNull Compilation compilation,
@NotNull Tree tree) |
@Nullable Instruction |
FirstCompileCompiler.compile(@NotNull Compiler compiler,
@NotNull Compilation compilation,
@NotNull Tree tree) |
@Nullable Instruction |
ToPushConstCompiler.compile(@NotNull Compiler compiler,
@NotNull Compilation compilation,
@NotNull Tree tree) |
@Nullable Instruction |
FlattenCompiler.compile(@NotNull Compiler compiler,
@NotNull Compilation compilation,
@NotNull Tree tree) |
@Nullable Instruction |
ExclusiveCompiler.compile(@NotNull Compiler compiler,
@NotNull Compilation compilation,
@NotNull Tree tree) |
@Nullable Instruction |
ToIdleCompiler.compile(@NotNull Compiler compiler,
@NotNull Compilation compilation,
@NotNull Tree tree) |
@Nullable Instruction |
ToPushEvalAddrCompiler.compile(@NotNull Compiler compiler,
@NotNull Compilation compilation,
@NotNull Tree tree) |
Modifier and Type | Field and Description |
---|---|
protected @NotNull Tree[] |
MessageImpl.criticalPoints
The critical points.
|
protected @NotNull Tree[] |
MessageImpl.stackTrace
The stack trace.
|
Modifier and Type | Method and Description |
---|---|
@NotNull Tree[] |
MessageImpl.getCriticalPoints() |
@NotNull Tree[] |
MessageImpl.getStackTrace() |
Constructor and Description |
---|
MessageImpl(@NotNull java.lang.String messagePhrase,
@NotNull Memory memory,
@NotNull java.lang.String priority,
@NotNull java.lang.String errorKind,
boolean fetal,
Tree... criticalPoints)
Construct a new message.
|
MessageImpl(@NotNull java.lang.String messagePhrase,
@NotNull java.lang.String priority,
@NotNull java.lang.String errorKind,
boolean fetal,
Tree... criticalPoints)
Construct a new message.
|
MessageImpl(@NotNull java.lang.Throwable exception,
@NotNull Memory memory,
@NotNull java.lang.String priority,
@NotNull java.lang.String errorKind,
boolean fetal,
Tree... criticalPoints)
Construct a new message.
|
MessageImpl(@NotNull java.lang.Throwable exception,
@NotNull java.lang.String priority,
@NotNull java.lang.String errorKind,
boolean fetal,
Tree... criticalPoints)
Construct a new message.
|
Modifier and Type | Field and Description |
---|---|
protected @Nullable Tree |
RepllocAddrExecInstr.tree
The tree this instruction was declared at.
|
protected @Nullable Tree |
PushNdefAddr.tree
The tree this instruction was declared at.
|
protected @Nullable Tree |
PushMulExecInstr0ExecInstr1.tree
The tree this instruction was declared at.
|
protected @Nullable Tree |
PushEvalAddr.tree
The tree of this instruction.
|
protected @Nullable Tree |
ConsoleExecInstr.tree
The tree this instruction was declared at.
|
protected @Nullable Tree |
SpreadExecInstr.tree
The tree this instruction was declared at.
|
protected @Nullable Tree |
SoutExecInstr.tree
The tree from where this instruction was declared.
|
protected @Nullable Tree |
RepreeAddr.tree
The tree this instruction was declared at.
|
protected @Nullable Tree |
PushEqlExecInstr0ExecInstr1.tree
The tree this instruction was declared at.
|
protected @Nullable Tree |
PushConst.tree
The tree of this instruction.
|
protected @Nullable Tree |
PushDefAddr.tree
The tree this instruction was declared at.
|
protected @Nullable Tree |
CpedAddrXinstr.tree
The tree from where this instruction was declared.
|
protected @Nullable Tree |
AllocAddrExecInstr.tree
The tree this instruction was declared at.
|
protected @Nullable Tree |
IterXinstr.tree
The tree from where this instruction was declared.
|
protected @Nullable Tree |
IpedXinstr.tree
The tree from where this instruction was declared.
|
protected @Nullable Tree |
ReprntConst.tree
The tree from where this instruction was declared.
|
protected @Nullable Tree |
SerrExecInstr.tree
The tree from where this instruction was declared.
|
protected @Nullable Tree |
FallocAddrConst.tree
The tree this instruction was declared at.
|
protected @Nullable Tree |
FreeAddr.tree
The tree this instruction was declared at.
|
protected @Nullable Tree |
PushGetAddrExecInstr.tree
The tree this instruction was declared at.
|
protected @Nullable Tree |
PutAddrExecInstr0ExecInstr1.tree
The tree this instruction was declared at.
|
protected @Nullable Tree |
PushNegExecInstr.tree
The tree this instruction was declared at.
|
protected @Nullable Tree |
PrintExecInstr.tree
The tree this instruction was declared at.
|
protected @Nullable Tree |
AllocAddrConst.tree
The tree this instruction was declared at.
|
protected @Nullable Tree |
PushSubExecInstr0ExecInstr1.tree
The tree this instruction was declared at.
|
protected @Nullable Tree |
ExecImportExecInstr.tree
The tree this instruction was declared at.
|
protected @Nullable Tree |
BranchExecInstr0Instr1Instr2.tree
The tree this instruction was declared at.
|
protected @Nullable Tree |
PushLndExecInstr0ExecInstr1.tree
The tree this instruction was declared at.
|
protected @Nullable Tree |
PushLorExecInstr0ExecInstr1.tree
The tree this instruction was declared at.
|
protected @Nullable Tree |
PushModExecInstr0ExecInstr1.tree
The tree this instruction was declared at.
|
protected @Nullable Tree |
PushDivExecInstr0ExecInstr1.tree
The tree this instruction was declared at.
|
protected @Nullable Tree |
Idle.tree
The tree this instruction was declared at.
|
protected @Nullable Tree |
WpedInstrXinstr.tree
The tree from where this instruction was declared.
|
protected @Nullable Tree |
PushCmpExecInstr0ExecInstr1.tree
The tree this instruction was declared at.
|
protected @Nullable Tree |
PushAddExecInstr0ExecInstr1.tree
The tree this instruction was declared at.
|
protected @Nullable Tree |
FpedAddrExecInstrXinstr.tree
The tree from where this instruction was declared.
|
Modifier and Type | Method and Description |
---|---|
@Nullable Tree |
RepllocAddrExecInstr.getTree() |
@Nullable Tree |
PushMulExecInstr0ExecInstr1.getTree() |
@Nullable Tree |
PushEvalAddr.getTree() |
@Nullable Tree |
ConsoleExecInstr.getTree() |
@Nullable Tree |
SpreadExecInstr.getTree() |
@Nullable Tree |
RepreeAddr.getTree() |
@Nullable Tree |
PushEqlExecInstr0ExecInstr1.getTree() |
@Nullable Tree |
PushConst.getTree() |
@Nullable Tree |
CpedAddrXinstr.getTree() |
@Nullable Tree |
AllocAddrExecInstr.getTree() |
@Nullable Tree |
IterXinstr.getTree() |
@Nullable Tree |
IpedXinstr.getTree() |
@Nullable Tree |
ReprntConst.getTree() |
@Nullable Tree |
FallocAddrConst.getTree() |
@Nullable Tree |
FreeAddr.getTree() |
@Nullable Tree |
PushGetAddrExecInstr.getTree() |
@Nullable Tree |
PutAddrExecInstr0ExecInstr1.getTree() |
@Nullable Tree |
PushNegExecInstr.getTree() |
@Nullable Tree |
PrintExecInstr.getTree() |
@Nullable Tree |
AllocAddrConst.getTree() |
@Nullable Tree |
PushSubExecInstr0ExecInstr1.getTree() |
@Nullable Tree |
ExecImportExecInstr.getTree() |
@Nullable Tree |
BranchExecInstr0Instr1Instr2.getTree() |
@Nullable Tree |
PushLndExecInstr0ExecInstr1.getTree() |
@Nullable Tree |
PushLorExecInstr0ExecInstr1.getTree() |
@Nullable Tree |
PushModExecInstr0ExecInstr1.getTree() |
@Nullable Tree |
PushDivExecInstr0ExecInstr1.getTree() |
@Nullable Tree |
PushCmpExecInstr0ExecInstr1.getTree() |
@Nullable Tree |
PushAddExecInstr0ExecInstr1.getTree() |
@Nullable Tree |
FpedAddrExecInstrXinstr.getTree() |
Constructor and Description |
---|
AllocAddrConst(@NotNull Tree tree,
@NotNull java.lang.String address,
@NotNull java.lang.String constant)
Construct a new instruction that allocates the given
constant to the given
address at the heap. |
AllocAddrExecInstr(@NotNull Tree tree,
@NotNull java.lang.String address,
@NotNull Instruction instruction)
Construct a new instruction that allocates the results from executing the given
instruction to the given address at the heap. |
BranchExecInstr0Instr1Instr2(@NotNull Tree tree,
@NotNull Instruction instruction0,
@NotNull Instruction instruction1)
Construct a new instruction that executes the given
instruction0 and
executes the given instruction1 when the condition succeed. |
BranchExecInstr0Instr1Instr2(@NotNull Tree tree,
@NotNull Instruction instruction0,
@NotNull Instruction instruction1,
@NotNull Instruction instruction2)
Construct a new instruction that executes the given
instruction0 and
executes the given instruction1 when the condition succeed and execute the
given instruction2 when the condition fails. |
ConsoleExecInstr(@NotNull Tree tree,
@NotNull Instruction instruction)
Construct a new instruction that sets the console to be outputting to the file with
the name equals to the results of evaluating the value returned from executing the
given
instruction . |
CpedAddrXinstr(@NotNull Tree tree,
@NotNull java.lang.String address,
Instruction... instructions)
Construct a new instruction that executes the given
instructions and
capture their output then allocate it to the given address in the heap. |
CpedAddrXinstr(@NotNull Tree tree,
@NotNull java.lang.String address,
@NotNull java.util.List<Instruction> instructions)
Construct a new instruction that executes the given
instructions and
capture their output then allocate it to the given address in the heap. |
ExecImportExecInstr(@NotNull Tree tree,
@NotNull Instruction instruction)
Construct a new instruction that import the instruction with the results of
executing the given
instruction . |
FallocAddrConst(@NotNull Tree tree,
@NotNull java.lang.String address,
@NotNull java.lang.String constant)
Construct a new instruction that allocates the given
constant to the given
address at the heap of the last frame. |
FpedAddrExecInstrXinstr(@NotNull Tree tree,
@NotNull java.lang.String address,
@NotNull Instruction instruction,
Instruction... instructions)
Construct a new instruction that executes the given
instructions foreach
item resultant from executing the given instruction . |
FpedAddrExecInstrXinstr(@NotNull Tree tree,
@NotNull java.lang.String address,
@NotNull Instruction instruction,
@NotNull java.util.List<Instruction> instructions)
Construct a new instruction that executes the given
instructions foreach
item resultant from executing the given instruction . |
FreeAddr(@NotNull Tree tree,
@NotNull java.lang.String address)
Construct a new instruction that frees the given
address in the heap when
executed. |
Idle(@NotNull Tree tree)
Construct a new instruction that does nothing.
|
IpedXinstr(@NotNull Tree tree,
Instruction... instructions)
Construct a new instruction that executes the given
instructions in order
in a IPED style. |
IpedXinstr(@NotNull Tree tree,
@NotNull java.util.List<Instruction> instructions)
Construct a new instruction that executes the given
instructions in order
in a IPED style. |
IterXinstr(@NotNull Tree tree,
Instruction... instructions)
Construct a new instruction that executes the given
instructions in order
in a ITER style. |
IterXinstr(@NotNull Tree tree,
@NotNull java.util.List<Instruction> instructions)
Construct a new instruction that executes the given
instructions in order
in a ITER style. |
PrintExecInstr(@NotNull Tree tree,
@NotNull Instruction instruction)
Construct a new instruction that prints the results from executing the given
instruction . |
PushAddExecInstr0ExecInstr1(@NotNull Tree tree,
@NotNull Instruction instruction0,
@NotNull Instruction instruction1)
Construct a new instruction that pushes the results of adding the result of
executing the given
instruction0 with the results of executing the given
instruction1 . |
PushCmpExecInstr0ExecInstr1(@NotNull Tree tree,
@NotNull Instruction instruction0,
@NotNull Instruction instruction1)
Construct a new instruction that pushes the results of comparing the result of
executing the given
instruction0 with the results of executing the given
instruction1 . |
PushConst(@NotNull Tree tree)
Construct a new instruction that pushes the content of the given
tree to
the stack. |
PushConst(@NotNull Tree tree,
@NotNull java.lang.String constant)
Construct a new instruction that pushes the given
constant to the stack. |
PushDefAddr(@NotNull Tree tree,
@NotNull java.lang.String address)
Construct a new instruction that pushes
true if the given address
is defined or pushes false otherwise. |
PushDivExecInstr0ExecInstr1(@NotNull Tree tree,
@NotNull Instruction instruction0,
@NotNull Instruction instruction1)
Construct a new instruction that pushes the results of dividing the result of
executing the given
instruction0 by the results of executing the given
instruction1 . |
PushEqlExecInstr0ExecInstr1(@NotNull Tree tree,
@NotNull Instruction instruction0,
@NotNull Instruction instruction1)
Construct a new instruction that pushes the results of equating the result of
executing the given
instruction0 with the results of executing the given
instruction1 . |
PushEvalAddr(@NotNull Tree tree,
@NotNull java.lang.String address)
Construct a new instruction that evaluates the given
address then pushes
the results to the stack. |
PushGetAddrExecInstr(@NotNull Tree tree,
@NotNull java.lang.String address,
@NotNull Instruction instruction)
Construct a new instruction that pushes the value in the given
address at
the results of executing the given instruction to the heap. |
PushLndExecInstr0ExecInstr1(@NotNull Tree tree,
@NotNull Instruction instruction0,
@NotNull Instruction instruction1)
Construct a new instruction that pushes the results of "and"-ing the result of
executing the given
instruction0 with the results of executing the given
instruction1 . |
PushLorExecInstr0ExecInstr1(@NotNull Tree tree,
@NotNull Instruction instruction0,
@NotNull Instruction instruction1)
Construct a new instruction that pushes the results of "or"-ing the result of
executing the given
instruction0 with the results of executing the given
instruction1 . |
PushModExecInstr0ExecInstr1(@NotNull Tree tree,
@NotNull Instruction instruction0,
@NotNull Instruction instruction1)
Construct a new instruction that pushes the results of applying "modulo" to the
result of executing the given
instruction0 with the results of executing
the given instruction1 . |
PushMulExecInstr0ExecInstr1(@NotNull Tree tree,
@NotNull Instruction instruction0,
@NotNull Instruction instruction1)
Construct a new instruction that pushes the results of multiplying the result of
executing the given
instruction0 with the results of executing the given
instruction1 . |
PushNdefAddr(@NotNull Tree tree,
@NotNull java.lang.String address)
Construct a new instruction that pushes
false if the given address
is defined or pushes true otherwise. |
PushNegExecInstr(@NotNull Tree tree,
@NotNull Instruction instruction)
Construct a new instruction that pushes the results of negating the result of
executing the given
instruction . |
PushSubExecInstr0ExecInstr1(@NotNull Tree tree,
@NotNull Instruction instruction0,
@NotNull Instruction instruction1)
Construct a new instruction that pushes the results of subtracting the result of
executing the given
instruction0 by the results of executing the given
instruction1 . |
PutAddrExecInstr0ExecInstr1(@NotNull Tree tree,
@NotNull java.lang.String address,
@NotNull Instruction instruction0,
@NotNull Instruction instruction1)
Construct a new instruction that puts the value of executing the given
instruction1 to the value of executing the given instruction0 at the given
address in the heap. |
RepllocAddrExecInstr(@NotNull Tree tree,
@NotNull java.lang.String address,
@NotNull Instruction instruction)
Construct a new instruction that allocates the results from executing the given
instruction to the given address as the address in REPLLOC style. |
RepreeAddr(@NotNull Tree tree,
@NotNull java.lang.String address)
Construct a new instruction that frees (replace free) the given
address in
the heap when executed. |
ReprntConst(@NotNull Tree tree)
Construct a new instruction that prints the content of the given
tree to
the console when executed. |
ReprntConst(@NotNull Tree tree,
@NotNull java.lang.String constant)
Construct a new instruction that prints the given
constant to the console
when executed. |
SerrExecInstr(@NotNull Tree tree,
@NotNull Instruction instruction)
Construct a new instruction that executes the given
instruction and outputs
its results to the system erro console. |
SoutExecInstr(@NotNull Tree tree,
@NotNull Instruction instruction)
Construct a new instruction that executes the given
instruction and outputs
its results to the system console. |
SpreadExecInstr(@NotNull Tree tree,
@NotNull Instruction instruction)
Construct a new instruction that execute the given
instruction and spread
the results to the heap. |
WpedInstrXinstr(@NotNull Tree tree,
@NotNull Instruction instruction,
Instruction... instructions)
Construct a new instruction that executes the given
instructions while
executing the given instruction evaluates to true. |
WpedInstrXinstr(@NotNull Tree tree,
@NotNull Instruction instruction,
@NotNull java.util.List<Instruction> instructions)
Construct a new instruction that executes the given
instructions while
executing the given instruction evaluates to true. |
Modifier and Type | Field and Description |
---|---|
protected @NotNull Tree |
CompilationImpl.root
The root tree of this compilation.
|
Modifier and Type | Method and Description |
---|---|
@NotNull Tree |
CompilationImpl.getRootTree() |
Constructor and Description |
---|
CompilationImpl(@NotNull Environment environment,
@NotNull Tree root)
Construct a new compilation with the given
root tree to be its root tree. |
Modifier and Type | Method and Description |
---|---|
protected boolean |
MergeFlatByWeightParser.check(@NotNull Tree primary,
@NotNull Tree secondary) |
protected boolean |
MergeFlatByWeightParser.check(@NotNull Tree primary,
@NotNull Tree secondary) |
protected boolean |
MergeByWeightParser.check(@NotNull Tree primary,
@NotNull Tree secondary)
Check if the down-structure of the given
secondary can be alongside with
the given primary in its structure. |
protected boolean |
MergeByWeightParser.check(@NotNull Tree primary,
@NotNull Tree secondary)
Check if the down-structure of the given
secondary can be alongside with
the given primary in its structure. |
protected boolean |
MergeByOrderParser.check(@NotNull Tree previous,
@NotNull Tree next)
Check if the down-structure of the given
next can be alongside with the
given previous in its structure. |
protected boolean |
MergeByOrderParser.check(@NotNull Tree previous,
@NotNull Tree next)
Check if the down-structure of the given
next can be alongside with the
given previous in its structure. |
protected boolean |
MergeFlatByOrderParser.check(@NotNull Tree previous,
@NotNull Tree next) |
protected boolean |
MergeFlatByOrderParser.check(@NotNull Tree previous,
@NotNull Tree next) |
@NotNull java.util.Set<Tree> |
HierarchyParser.parse(@NotNull Compilation compilation,
@NotNull Tree tree) |
@NotNull java.util.Set<Tree> |
RecursiveParser.parse(@NotNull Compilation compilation,
@NotNull Tree tree) |
@NotNull java.util.Set<Tree> |
FilterByKindParser.parse(@NotNull Compilation compilation,
@NotNull Tree tree) |
@NotNull java.util.Set<Tree> |
MergeByWeightParser.parse(@NotNull Compilation compilation,
@NotNull Tree tree) |
@NotNull java.util.Set<Tree> |
ThenAddParser.parse(@NotNull Compilation compilation,
@NotNull Tree tree) |
@NotNull java.util.Set<Tree> |
FilterHierarchyByKindParser.parse(@NotNull Compilation compilation,
@NotNull Tree tree) |
@NotNull java.util.Set<Tree> |
MergeByOrderParser.parse(@NotNull Compilation compilation,
@NotNull Tree tree) |
@NotNull java.util.Set<Tree> |
PatternParser.parse(@NotNull Compilation compilation,
@NotNull Tree tree) |
@NotNull java.util.Set<Tree> |
CollectParser.parse(@NotNull Compilation compilation,
@NotNull Tree tree) |
@NotNull java.util.Set<Tree> |
PatternRangeParser.parse(@NotNull Compilation compilation,
@NotNull Tree tree) |
@NotNull java.util.Set<Tree> |
ThenOfferParser.parse(@NotNull Compilation compilation,
@NotNull Tree tree) |
@NotNull java.util.Set<Tree> |
PatternGroupParser.parse(@NotNull Compilation compilation,
@NotNull Tree tree) |
@NotNull java.util.Set<Tree> |
CombineParser.parse(@NotNull Compilation compilation,
@NotNull Tree tree) |
@NotNull java.util.Set<Tree> |
OfferParser.parse(@NotNull Compilation compilation,
@NotNull Tree tree) |
Modifier and Type | Method and Description |
---|---|
static @NotNull Tree |
Trees.root(@NotNull Tree tree)
Return the root tree of the given
tree . |
static @NotNull Tree[] |
Trees.toArray(@NotNull Tree tree)
Return an array containing the current children of the given
tree . |
Modifier and Type | Method and Description |
---|---|
static @NotNull java.util.Set<Tree> |
Trees.children(@NotNull Tree tree)
Collect all the children of the given
tree and add them to the given result . |
static @NotNull java.util.Set<Tree> |
Trees.collect(@NotNull Tree tree)
Collect all the relatives to the given
tree (including the tree itself). |
static @NotNull java.util.List<Tree> |
Trees.flatChildren(@NotNull Tree tree)
Return an ordered list containing the children of the given
tree alongside
with newly created trees that fills the gaps between the children of the given
tree . |
static int |
Trees.line(@NotNull Tree tree)
Get the line of the given
tree on its document. |
static @NotNull java.util.regex.Matcher |
Parsing.matcher(@NotNull Tree tree,
@NotNull java.util.regex.Pattern pattern)
Construct a new matcher over the current content of the document of the given
tree with the range of the reference of the given tree as the
region of it. |
static @Nullable java.util.List<Reference> |
Parsing.parse(@NotNull Tree tree,
@NotNull java.util.regex.Pattern pattern)
Parse the whole given
tree with the given pattern and return the
references of the groups in the given pattern . |
static @NotNull java.util.Set<Reference> |
Parsing.parseAll(@NotNull Tree tree,
@NotNull java.util.regex.Pattern pattern,
int zIndex)
Parse all the ranges matching the given
pattern in the given tree . |
static @NotNull java.util.Set<java.util.List<Reference>> |
Parsing.parseAll(@NotNull Tree tree,
@NotNull java.util.regex.Pattern startPattern,
@NotNull java.util.regex.Pattern endPattern,
int zIndex)
Parse all the ranges starting with the given
startPattern and ending with
the given endPattern in the given tree . |
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 . |
static @NotNull java.util.List<Reference> |
Parsing.parseFirst(@NotNull Tree tree,
@NotNull java.util.regex.Pattern startPattern,
@NotNull java.util.regex.Pattern endPattern,
int zIndex)
Parse all the ranges starting with the given
startPattern and ending with
the given endPattern in the given tree . |
static int |
Trees.positionInLine(@NotNull Tree tree)
Return the position of the given
tree on its line. |
static @NotNull java.lang.CharSequence |
Trees.read(@NotNull Tree tree)
Read the source-code of the given
tree . |
static @Nullable java.lang.CharSequence |
Trees.readLine(@NotNull Tree tree)
Read the whole line that the given
tree is at on its document. |
static @NotNull Tree |
Trees.root(@NotNull Tree tree)
Return the root tree of the given
tree . |
static @NotNull Tree[] |
Trees.toArray(@NotNull Tree tree)
Return an array containing the current children of the given
tree . |
Modifier and Type | Field and Description |
---|---|
protected @Nullable Tree |
TreeOutOfBoundsException.bounds
The tree that defines the bounds.
|
protected @Nullable Tree |
IllegalTreeException.illegal
The illegal tree.
|
protected @Nullable Tree |
IllegalTreeException.primary
The primary tree.
|
protected @Nullable Tree |
Sketch.tree
The tree this sketch is from.
|
protected @Nullable Tree |
CompileException.tree
A reference to where the compilation failure occurred.
|
protected @Nullable Tree |
ExecutionException.tree
The tree where the failure occurred.
|
Modifier and Type | Method and Description |
---|---|
@Nullable Tree |
TreeOutOfBoundsException.getBoundsTree()
Return the tree that defines the bounds.
|
@Nullable Tree |
Tree.getChild()
Get the first child tree of this tree.
|
@Nullable Tree |
IllegalTreeException.getIllegalTree()
Return the illegal tree that caused this exception to be thrown.
|
@Nullable Tree |
Tree.getNext()
Get the tree after this tree.
|
@Nullable Tree |
Tree.getParent()
Get the tree containing this tree.
|
@Nullable Tree |
Tree.getPrevious()
Get the tree before this tree.
|
@Nullable Tree |
IllegalTreeException.getPrimaryTree()
Return the primary tree where the illegal tree was detected.
|
@NotNull Tree |
Compilation.getRootTree()
Return the root tree of this compilation.
|
@NotNull Tree[] |
Memory.getStackTrace()
Build the current stack trace of trees.
|
@Nullable Tree |
Sketch.getTree()
Return the tree of this sketch.
|
default @Nullable Tree |
Instruction.getTree()
Return the tree from where this instruction was declared.
|
@Nullable Tree |
CompileException.getTree()
Return a reference tree where the failure occurred.
|
@Nullable Tree |
ExecutionException.getTree()
Return the tree where the failure occurred.
|
Modifier and Type | Method and Description |
---|---|
static @Nullable Relation |
Relation.compute(@NotNull Tree tree,
int s,
int e)
Calculate the direction from the given
sketch to the area [s, e) . |
static @NotNull Intersection |
Intersection.compute(@NotNull Tree tree,
int s,
int e)
Calculate what is the intersection between the given
sketch and the given
area [s, e) . |
static @NotNull Dominance |
Dominance.compute(@NotNull Tree tree,
int s,
int e)
Calculate how much dominant the area
[s, e) is over the given sketch . |
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 . |
static @Nullable Relation |
Relation.compute(@NotNull Tree tree,
@NotNull Tree other)
Calculate the direction from the given
sketch to the other . |
static @Nullable Relation |
Relation.compute(@NotNull Tree tree,
@NotNull Tree other)
Calculate the direction from the given
sketch to the other . |
static @NotNull Intersection |
Intersection.compute(@NotNull Tree tree,
@NotNull Tree other)
Calculate the intersection between the sketches
sketch and other . |
static @NotNull Intersection |
Intersection.compute(@NotNull Tree tree,
@NotNull Tree other)
Calculate the intersection between the sketches
sketch and other . |
static @NotNull Dominance |
Dominance.compute(@NotNull Tree tree,
@NotNull Tree other)
Calculate how much dominant the
other sketch over the given sketch . |
static @NotNull Dominance |
Dominance.compute(@NotNull Tree tree,
@NotNull Tree other)
Calculate how much dominant the
other sketch over the given sketch . |
static @NotNull Instruction |
Instruction.create(@NotNull Tree tree,
@NotNull Instruction instruction)
Wrap the given
instruction with another instruction delegates to the given
instruction when executed and return the given tree when its Instruction.getTree() is called. |
void |
Tree.offer(@NotNull Tree tree)
Offer the given
tree to the structure of this tree. |
Sketch |
Sketch.setTree(@NotNull Tree tree)
Set the tree this sketch is from to be the given
tree . |
Constructor and Description |
---|
CompileException(@Nullable java.lang.String message,
@Nullable java.lang.Throwable cause,
@Nullable Tree tree)
Construct a new compile exception with the given
tree , message and
cause . |
CompileException(@Nullable java.lang.String message,
@NotNull Tree tree)
Construct a new compile exception with the given
tree and message . |
CompileException(@Nullable java.lang.Throwable cause,
@Nullable Tree tree)
Construct a new compile exception with the given
tree and cause . |
CompileException(@Nullable Tree tree)
Construct a new compile exception with the given
tree . |
ExecutionException(@Nullable java.lang.String message,
@Nullable java.lang.Throwable cause,
@Nullable Tree tree)
Construct a new execution exception with the given
tree , message
and cause . |
ExecutionException(@Nullable java.lang.String message,
@Nullable Tree tree)
Construct a new execution exception with the given
tree and message . |
ExecutionException(@Nullable java.lang.Throwable cause,
@Nullable Tree tree)
Construct a new execution exception with the given
tree and cause . |
ExecutionException(@Nullable Tree tree)
Construct a new execution exception with the given
tree . |
IllegalTreeException(@Nullable java.lang.String message,
@Nullable java.lang.Throwable cause,
@Nullable Tree illegal)
Construct a new illegal tree exception with the given
illegal tree and the
given message and cause . |
IllegalTreeException(@Nullable java.lang.String message,
@Nullable java.lang.Throwable cause,
@Nullable Tree primary,
@Nullable Tree illegal)
Construct a new illegal tree exception with the given
illegal tree and the
given message and cause . |
IllegalTreeException(@Nullable java.lang.String message,
@Nullable java.lang.Throwable cause,
@Nullable Tree primary,
@Nullable Tree illegal)
Construct a new illegal tree exception with the given
illegal tree and the
given message and cause . |
IllegalTreeException(@Nullable java.lang.String message,
@Nullable Tree illegal)
Construct a new illegal tree exception with the given
illegal tree and the
given message . |
IllegalTreeException(@Nullable java.lang.String message,
@Nullable Tree primary,
@Nullable Tree illegal)
Construct a new illegal tree exception with the given
illegal tree and the
given message . |
IllegalTreeException(@Nullable java.lang.String message,
@Nullable Tree primary,
@Nullable Tree illegal)
Construct a new illegal tree exception with the given
illegal tree and the
given message . |
IllegalTreeException(@Nullable java.lang.Throwable cause,
@Nullable Tree illegal)
Construct a new illegal tree exception with the given
illegal tree and the
given cause . |
IllegalTreeException(@Nullable java.lang.Throwable cause,
@Nullable Tree primary,
@Nullable Tree illegal)
Construct a new illegal tree exception with the given
illegal tree and the
given cause . |
IllegalTreeException(@Nullable java.lang.Throwable cause,
@Nullable Tree primary,
@Nullable Tree illegal)
Construct a new illegal tree exception with the given
illegal tree and the
given cause . |
IllegalTreeException(@Nullable Tree illegal)
Construct a new illegal tree exception with the given
illegal tree. |
IllegalTreeException(@Nullable Tree primary,
@Nullable Tree illegal)
Construct a new illegal tree exception with the given
illegal tree. |
IllegalTreeException(@Nullable Tree primary,
@Nullable Tree illegal)
Construct a new illegal tree exception with the given
illegal tree. |
Sketch(@NotNull Tree tree)
Construct a new sketch that references the given
tree as its tree. |
Sketch(@NotNull Tree tree,
@NotNull java.lang.String kind)
Construct a new sketch that references the given
tree as its tree. |
Sketch(@NotNull Tree tree,
@NotNull java.lang.String name,
@NotNull java.lang.String kind)
Construct a new sketch that references the given
tree as its tree. |
TreeClashException(@Nullable java.lang.String message,
@Nullable java.lang.Throwable cause,
@Nullable Tree primary,
@Nullable Tree illegal)
Construct a new tree clash exception with the given
primary and illegal trees and the given message . |
TreeClashException(@Nullable java.lang.String message,
@Nullable java.lang.Throwable cause,
@Nullable Tree primary,
@Nullable Tree illegal)
Construct a new tree clash exception with the given
primary and illegal trees and the given message . |
TreeClashException(@Nullable java.lang.String message,
@Nullable Tree primary,
@Nullable Tree illegal)
Construct a new tree clash exception with the given
primary and illegal trees and the given message . |
TreeClashException(@Nullable java.lang.String message,
@Nullable Tree primary,
@Nullable Tree illegal)
Construct a new tree clash exception with the given
primary and illegal trees and the given message . |
TreeClashException(@Nullable java.lang.Throwable cause,
@Nullable Tree primary,
@Nullable Tree illegal)
Construct a new tree clash exception with the given
primary and illegal trees and the given message . |
TreeClashException(@Nullable java.lang.Throwable cause,
@Nullable Tree primary,
@Nullable Tree illegal)
Construct a new tree clash exception with the given
primary and illegal trees and the given message . |
TreeClashException(@Nullable Tree primary,
@Nullable Tree illegal)
Construct a new tree clash exception with the given
primary and illegal trees. |
TreeClashException(@Nullable Tree primary,
@Nullable Tree illegal)
Construct a new tree clash exception with the given
primary and illegal trees. |
TreeOutOfBoundsException(@Nullable java.lang.String message,
@Nullable java.lang.Throwable cause,
@Nullable Tree bounds,
@Nullable Tree illegal)
Construct a new tree out of bounds exception with the given
bounds and
illegal trees. |
TreeOutOfBoundsException(@Nullable java.lang.String message,
@Nullable java.lang.Throwable cause,
@Nullable Tree bounds,
@Nullable Tree illegal)
Construct a new tree out of bounds exception with the given
bounds and
illegal trees. |
TreeOutOfBoundsException(@Nullable java.lang.String message,
@Nullable Tree bounds,
@Nullable Tree illegal)
Construct a new tree out of bounds exception with the given
bounds and
illegal trees. |
TreeOutOfBoundsException(@Nullable java.lang.String message,
@Nullable Tree bounds,
@Nullable Tree illegal)
Construct a new tree out of bounds exception with the given
bounds and
illegal trees. |
TreeOutOfBoundsException(@Nullable java.lang.Throwable cause,
@Nullable Tree bounds,
@Nullable Tree illegal)
Construct a new tree out of bounds exception with the given
bounds and
illegal trees. |
TreeOutOfBoundsException(@Nullable java.lang.Throwable cause,
@Nullable Tree bounds,
@Nullable Tree illegal)
Construct a new tree out of bounds exception with the given
bounds and
illegal trees. |
TreeOutOfBoundsException(@Nullable Tree bounds,
@Nullable Tree illegal)
Construct a new tree out of bounds exception with the given
bounds and
illegal trees. |
TreeOutOfBoundsException(@Nullable Tree bounds,
@Nullable Tree illegal)
Construct a new tree out of bounds exception with the given
bounds and
illegal trees. |
TreeTakeoverException(@Nullable java.lang.String message,
@Nullable java.lang.Throwable cause,
@Nullable Tree primary,
@Nullable Tree illegal)
Construct a new tree takeover exception with the given
primary and illegal trees and the given message . |
TreeTakeoverException(@Nullable java.lang.String message,
@Nullable java.lang.Throwable cause,
@Nullable Tree primary,
@Nullable Tree illegal)
Construct a new tree takeover exception with the given
primary and illegal trees and the given message . |
TreeTakeoverException(@Nullable java.lang.String message,
@Nullable Tree primary,
@Nullable Tree illegal)
Construct a new tree takeover exception with the given
primary and illegal trees and the given message . |
TreeTakeoverException(@Nullable java.lang.String message,
@Nullable Tree primary,
@Nullable Tree illegal)
Construct a new tree takeover exception with the given
primary and illegal trees and the given message . |
TreeTakeoverException(@Nullable java.lang.Throwable cause,
@Nullable Tree primary,
@Nullable Tree illegal)
Construct a new tree takeover exception with the given
primary and illegal trees and the given message . |
TreeTakeoverException(@Nullable java.lang.Throwable cause,
@Nullable Tree primary,
@Nullable Tree illegal)
Construct a new tree takeover exception with the given
primary and illegal trees and the given message . |
TreeTakeoverException(@Nullable Tree primary,
@Nullable Tree illegal)
Construct a new tree takeover exception with the given
primary and illegal trees. |
TreeTakeoverException(@Nullable Tree primary,
@Nullable Tree illegal)
Construct a new tree takeover exception with the given
primary and illegal trees. |
Modifier and Type | Method and Description |
---|---|
boolean |
Analyzer.analyze(@NotNull Compilation compilation,
@NotNull Tree tree)
Analyze the given
tree and its relative trees. |
@Nullable Instruction |
Compiler.compile(@NotNull Compiler compiler,
@NotNull Compilation compilation,
@NotNull Tree tree)
Compile the given
tree and the trees in it. |
@NotNull java.util.Set<Tree> |
Parser.parse(@NotNull Compilation compilation,
@NotNull Tree tree)
Parse the given
sketch with respect to the given compilation . |