In package com.eden.orchid.api.compilers

@Singleton
public final class CompilerServiceImpl extends Object implements CompilerService

since: v1.0.0 public final

Fields

String[] customBinaryExtensions
Field Annotations:
@Option(
    value="binaryExtensions"),
@Description(
    value="Add additional file extensions to recognize as binary, so these assets can be copied directly without further processing.")

JSONObject customCompilerExtensions
Field Annotations:
@Option(
    value="compilerExtensions"),
@Description(
    value="Convert unrecognized file extensions into known file types for the compilers. The should be a mapping with keys of the unrecognized extension and values of the known extension. These take precedence over the normally recognized extensions.")

String[] customIgnoredOutputExtensions
Field Annotations:
@Option(
    value="ignoredOutputExtensions"),
@Description(
    value="Add additional file extensions to exclude from counting as an \'output extension\' An example would be \'min\' in a filename like \'index.min.js\', which is commonly used to denote a minified asset and is not intended to make a file named \'index.min\'.")

String defaultPrecompilerExtension
Field Annotations:
@Getter,
@Setter,
@Option,
@StringDefault(
    value="peb"),
@Description(
    value="Convert unrecognized file extensions into known file types for the compilers. The should be a mapping with keys of the unrecognized extension and values of the known extension. These take precedence over the normally recognized extensions.")

Constructors

CompilerServiceImpl(Set<E> compilers, Set<E> parsers, OrchidPrecompiler precompiler) public
Constructor Annotations:
@Inject

Parameters:

Methods

void initialize(OrchidContext context) public
Method Annotations:
@Override

Parameters:
void onPostExtraction() public
Method Annotations:
@Override

Set<E> getCompilerExtensions() public

Set<E> getParserExtensions() public

OrchidCompiler compilerFor(String extension) public

Parameters:
  • String extension
OrchidParser parserFor(String extension) public

Parameters:
  • String extension
String compile(String extension, String input) public

Parameters:
  • String extension
  • String input
String compile(String extension, String input, Object data) public

Parameters:
  • String extension
  • String input
  • Object data
Map<K, V> parse(String extension, String input) public

Parameters:
  • String extension
  • String input
String serialize(String extension, Object input) public

Parameters:
  • String extension
  • Object input
EdenPair<F, S> getEmbeddedData(String input) public

Parameters:
  • String input
String getOutputExtension(String extension) public

Parameters:
  • String extension
List<E> getBinaryExtensions() public

void isBinaryExtension(String extension) public

Parameters:
  • String extension
List<E> getIgnoredOutputExtensions() public

void isIgnoredOutputExtension(String extension) public

Parameters:
  • String extension