Modifier and Type | Method and Description |
---|---|
static Executable |
Executable.createOnce(DocumentDescriptor<Executable> documentDescriptor,
String parserName,
ParsingContext parsingContext)
If the executable does not yet exist in the document descriptor,
retrieves the source code and parses it into a compact, optimized,
executable.
|
static DocumentDescriptor<Executable> |
Executable.createOnce(String documentName,
String parserName,
ParsingContext parsingContext)
If the executable does not yet exist in the document source, retrieves
the source code and parses it into a compact, optimized, executable.
|
Collection<ExecutableSegment> |
Parser.parse(String sourceCode,
ParsingContext parsingContext,
Executable executable)
Parses source code, turning it into executable segments.
|
Constructor and Description |
---|
Executable(String documentName,
long documentTimestamp,
String sourceCode,
String parserName,
ParsingContext parsingContext)
Parses source code into a compact, optimized, executable.
|
Modifier and Type | Method and Description |
---|---|
DocumentDescriptor<D> |
DocumentSource.getDocument(String documentName)
Gets a document by its name.
|
DocumentDescriptor<D> |
ChainDocumentSource.getDocument(String documentName) |
DocumentDescriptor<D> |
DocumentFileSource.getDocument(String documentName) |
DocumentDescriptor<D> |
DocumentFileSource.getDocument(String documentName,
boolean read)
Gets the document descriptor, with support for caching descriptors.
|
DocumentDescriptor<D> |
DocumentSource.setDocument(String documentName,
String sourceCode,
String tag,
D document)
Allows adding or changing documents.
|
DocumentDescriptor<D> |
ChainDocumentSource.setDocument(String documentName,
String sourceCode,
String tag,
D document) |
DocumentDescriptor<D> |
DocumentFileSource.setDocument(String documentName,
String sourceCode,
String tag,
D document) |
DocumentDescriptor<D> |
DocumentSource.setDocumentIfAbsent(String documentName,
String sourceCode,
String tag,
D document)
Allows for atomically adding or changing documents.
|
DocumentDescriptor<D> |
ChainDocumentSource.setDocumentIfAbsent(String documentName,
String sourceCode,
String tag,
D document) |
DocumentDescriptor<D> |
DocumentFileSource.setDocumentIfAbsent(String documentName,
String sourceCode,
String tag,
D document) |
Modifier and Type | Class and Description |
---|---|
class |
DocumentDependencyLoopException
The document dependencies are in a loop.
|
class |
DocumentNotFoundException
The document was not found.
|
Modifier and Type | Method and Description |
---|---|
Collection<ExecutableSegment> |
MixedParser.optimize(Collection<ExecutableSegment> segments,
ParsingContext parsingContext,
Executable executable) |
Collection<ExecutableSegment> |
LiteralParser.parse(String sourceCode,
ParsingContext parsingContext,
Executable executable) |
Collection<ExecutableSegment> |
ProgramParser.parse(String sourceCode,
ParsingContext parsingContext,
Executable executable) |
Collection<ExecutableSegment> |
ScriptletsParser.parse(String sourceCode,
ParsingContext parsingContext,
Executable executable) |
Modifier and Type | Method and Description |
---|---|
void |
DocumentService.execute(String documentName)
Executes a source code document.
|
void |
DocumentService.executeOnce(String documentName)
As
DocumentService.execute(String) , but will only execute once per this thread. |
void |
DocumentService.include(String documentName)
Includes a text document into the current location.
|
void |
DocumentService.require(String... documentNames)
|
Copyright © 2009-2015 Three Crickets LLC.