Index

A B C D E F G H I L M N P R S T V W 
All Classes and Interfaces|All Packages|Serialized Form

A

addI18nFileParser(I18nFileParser) - Method in class dev.vanengine.core.VanEngine
Register an additional i18n file parser (e.g.
addI18nMessages(String, Map) - Method in class dev.vanengine.core.VanEngine
Register translation messages for a locale.
assets() - Method in record class dev.vanengine.core.VanCompiler.CompiledResult
Returns the value of the assets record component.

B

basePath(Path) - Method in class dev.vanengine.core.VanEngine.Builder
 
build() - Method in class dev.vanengine.core.VanEngine.Builder
 
builder() - Static method in class dev.vanengine.core.VanEngine
 

C

close() - Method in class dev.vanengine.core.VanCompiler
 
compile(String, Map) - Method in class dev.vanengine.core.VanEngine
Compile a .van file and evaluate with model data in one step.
compile(String, Map) - Method in class dev.vanengine.core.VanCompiler
Compile with an explicit files map (for classpath resources).
compile(Path, Path) - Method in class dev.vanengine.core.VanCompiler
Compile a .van file, returning cached results when the file hasn't changed.
CompiledResult(String, Map) - Constructor for record class dev.vanengine.core.VanCompiler.CompiledResult
Creates an instance of a CompiledResult record class.
compileLiteral(String, Map) - Method in class dev.vanengine.core.VanEngine
Compile an inline template and evaluate with model data in one step.

D

defaultLocale(String) - Method in class dev.vanengine.core.VanEngine.Builder
 
dev.vanengine.core - package dev.vanengine.core
 

E

equals(Object) - Method in record class dev.vanengine.core.VanCompiler.CompiledResult
Indicates whether some other object is "equal to" this one.
evaluate(Map) - Method in class dev.vanengine.core.VanTemplate
Interpolate {{{ expr }}} (raw) and {{ expr }} (escaped) placeholders with model data.
evaluate(Map, String) - Method in class dev.vanengine.core.VanTemplate
Interpolate placeholders with model data and locale-specific i18n messages.

F

findMissingKeys() - Method in class dev.vanengine.core.VanEngine
Find keys present in defaultLocale but missing in other locales.
format(String, Map) - Static method in class dev.vanengine.core.MessageFormatter
Replace {key} placeholders in the message with values from the params map.
formatSafe(String, Map) - Static method in class dev.vanengine.core.MessageFormatter
Same as MessageFormatter.format(String, Map), but HTML-escapes parameter values before substitution.

G

getBasePath() - Method in class dev.vanengine.core.VanEngine
 
getDefaultLocale() - Method in class dev.vanengine.core.VanEngine
 
getGlobalName() - Method in class dev.vanengine.core.VanCompiler
 
getHtml() - Method in class dev.vanengine.core.VanTemplate
Return the raw compiled HTML (with unresolved {{ expr }} placeholders).
getI18nMessages(String) - Method in class dev.vanengine.core.VanEngine
Get translation messages for the given locale with key-level merge fallback.
getKey() - Method in exception class dev.vanengine.core.MissingTranslationException
 
getLiteralTemplate(String) - Method in class dev.vanengine.core.VanEngine
Compile an inline template string and return a reusable template.
getLocale() - Method in exception class dev.vanengine.core.MissingTranslationException
 
getMessage(String, String) - Method in class dev.vanengine.core.VanEngine
Get a translated message by dot-separated key (no parameters).
getMessage(String, String, Map) - Method in class dev.vanengine.core.VanEngine
Get a translated message by dot-separated key, with {placeholder} replacement.
getMissingKeyStrategy() - Method in class dev.vanengine.core.VanEngine
 
getTemplate(String) - Method in class dev.vanengine.core.VanEngine
Compile a .van file from the filesystem and return a reusable template.
getTemplate(String, Map) - Method in class dev.vanengine.core.VanEngine
Compile from an explicit files map (for classpath resources) and return a reusable template.
globalName(String) - Method in class dev.vanengine.core.VanEngine.Builder
 

H

hashCode() - Method in record class dev.vanengine.core.VanCompiler.CompiledResult
Returns a hash code value for this object.
hasI18nMessages() - Method in class dev.vanengine.core.VanEngine
Whether any i18n messages have been loaded.
html() - Method in record class dev.vanengine.core.VanCompiler.CompiledResult
Returns the value of the html record component.

I

I18nFileParser - Interface in dev.vanengine.core
SPI for parsing i18n translation files.
init() - Method in class dev.vanengine.core.VanCompiler
 

L

loadI18nFiles(Path) - Method in class dev.vanengine.core.VanEngine
Scan an i18n directory for translation files and load them.
loadI18nFromStream(String, String, InputStream) - Method in class dev.vanengine.core.VanEngine
Load i18n messages from a stream.

M

MessageFormatter - Class in dev.vanengine.core
Simple {key} placeholder replacement for i18n messages, with optional plural resolution and HTML-safe formatting.
missingKeyStrategy(MissingKeyStrategy) - Method in class dev.vanengine.core.VanEngine.Builder
 
MissingKeyStrategy - Enum Class in dev.vanengine.core
Strategy for handling missing i18n translation keys.
MissingTranslationException - Exception Class in dev.vanengine.core
Thrown when a translation key is missing and strategy is MissingKeyStrategy.THROW_EXCEPTION.
MissingTranslationException(String, String) - Constructor for exception class dev.vanengine.core.MissingTranslationException
 

N

NativeBinaryResolver - Class in dev.vanengine.core
Resolves the van-compiler-wasi native binary for the current platform.
NativeBinaryResolver() - Constructor for class dev.vanengine.core.NativeBinaryResolver
 

P

parse(InputStream) - Method in interface dev.vanengine.core.I18nFileParser
Parse an i18n file from the given input stream.
parseImportPaths(String) - Static method in class dev.vanengine.core.VanCompiler
Extract component import paths from .van file content.

R

reloadI18nFiles() - Method in class dev.vanengine.core.VanEngine
Clear and reload all i18n files from the basePath/i18n directory.
resolve() - Method in class dev.vanengine.core.NativeBinaryResolver
 
resolvePlural(String, int) - Static method in class dev.vanengine.core.MessageFormatter
Resolve plural forms separated by | (pipe).
RETURN_KEY - Enum constant in enum class dev.vanengine.core.MissingKeyStrategy
Return the key path as the value (e.g.
RETURN_PLACEHOLDER - Enum constant in enum class dev.vanengine.core.MissingKeyStrategy
Return a placeholder string like "[missing: nav.home]".

S

setBasePath(Path) - Method in class dev.vanengine.core.VanEngine
 
setDefaultLocale(String) - Method in class dev.vanengine.core.VanEngine
 
setGlobalName(String) - Method in class dev.vanengine.core.VanCompiler
 
setGlobalName(String) - Method in class dev.vanengine.core.VanEngine
 
setMissingKeyStrategy(MissingKeyStrategy) - Method in class dev.vanengine.core.VanEngine
 
supportedExtensions() - Method in interface dev.vanengine.core.I18nFileParser
File extensions this parser can handle (lowercase, without dot), e.g.
supportedI18nExtensions() - Method in class dev.vanengine.core.VanEngine
Return all file extensions currently supported by registered parsers.

T

THROW_EXCEPTION - Enum constant in enum class dev.vanengine.core.MissingKeyStrategy
toString() - Method in record class dev.vanengine.core.VanCompiler.CompiledResult
Returns a string representation of this record class.

V

valueOf(String) - Static method in enum class dev.vanengine.core.MissingKeyStrategy
Returns the enum constant of this class with the specified name.
values() - Static method in enum class dev.vanengine.core.MissingKeyStrategy
Returns an array containing the constants of this enum class, in the order they are declared.
VanCompiler - Class in dev.vanengine.core
Manages a long-lived van-compiler-wasi daemon subprocess and provides .van file compilation with mtime-based caching.
VanCompiler() - Constructor for class dev.vanengine.core.VanCompiler
 
VanCompiler.CompiledResult - Record Class in dev.vanengine.core
 
VanEngine - Class in dev.vanengine.core
 
VanEngine(VanCompiler) - Constructor for class dev.vanengine.core.VanEngine
 
VanEngine.Builder - Class in dev.vanengine.core
 
VanTemplate - Class in dev.vanengine.core
A compiled, immutable template holding HTML with {{ expr }} placeholders.

W

WARN_AND_RETURN_KEY - Enum constant in enum class dev.vanengine.core.MissingKeyStrategy
Log a warning and return the key path.
A B C D E F G H I L M N P R S T V W 
All Classes and Interfaces|All Packages|Serialized Form