All Downloads are FREE. Search and download functionalities are using the official Maven repository.

e4conf.jse4conf.0.5.1.source-code.index-all.html Maven / Gradle / Ivy

Go to download

A parser and interpreter library for JavaScript expressions embedded in a configuration file.

The newest version!





Index










A C D E F G H J K L M N P R S T U V W 

A

addKeyValue(String, String) - Method in class com.google.jse4conf.Section
Add a pair of original config file's key and value.

C

com.google.jse4conf - package com.google.jse4conf
 
compile() - Method in class com.google.jse4conf.Section
Compile value strings without any JS environment.
compile(JS) - Method in class com.google.jse4conf.Section
Compile value strings with the given JS environment.
compileConfString(String) - Method in class com.google.jse4conf.Conf2JS
Compile sections in content to JS code, if useJSE is true in a (sub)section.
compileConfString(String, boolean) - Method in class com.google.jse4conf.Conf2JS
Compile sections in content to JS code, if useJSE is true in a (sub)section or compileAll.
compileFile(String, String) - Method in class com.google.jse4conf.Conf2JS
 
compileJS() - Method in class com.google.jse4conf.JSEConfig
Compile all (sub)sections that have useJSE=true.
compileJS(boolean) - Method in class com.google.jse4conf.JSEConfig
Compile all (sub)sections with either useJSE=true or compileAll=true.
compileJS(String) - Method in class com.google.jse4conf.JSEConfig
Compile the specified section.
compileJS(String, String) - Method in class com.google.jse4conf.JSEConfig
Compile the specified (sub)section; subsection could be null.
Conf2JS - Class in com.google.jse4conf
Converts a JSE config file to JavaScript code.

D

debug(String) - Method in class com.google.jse4conf.Logger
 
debugKey(String, String) - Method in class com.google.jse4conf.Logger
 
debugKey(String, String, String) - Method in class com.google.jse4conf.Logger
 
debugKeyParsedValue(String, String) - Method in class com.google.jse4conf.Logger
 
debugKeyValue(String, String) - Method in class com.google.jse4conf.Logger
 
debugMissingValue(String) - Method in class com.google.jse4conf.Logger
 
debugUsedKeys(String, Set<String>) - Method in class com.google.jse4conf.Logger
 
dumpJSCode() - Method in class com.google.jse4conf.Section
Dump JavaScript code to define an object variable containing this section's key-value.
dumpJSCode(boolean) - Method in class com.google.jse4conf.Section
Dump JavaScript code, with an object value for this section's key-value.
dumpJSKeyValues(String) - Method in class com.google.jse4conf.Section
Dump compiled JS code and that JS code value with given initCode.
dumpJSSource(String) - Method in class com.google.jse4conf.JSEConfig
Returns all JavaScript key-value pairs of a section, with JavaScript parsed source code.
dumpJSSource(String, String) - Method in class com.google.jse4conf.JSEConfig
Returns all JavaScript key-value pairs of a subsection, with JavaScript parsed source code.
dumpJSValues(String) - Method in class com.google.jse4conf.JSEConfig
Returns all JavaScript key-value pairs of a section, with evaluated JavaScript values.
dumpJSValues(String, String) - Method in class com.google.jse4conf.JSEConfig
Returns all JavaScript key-value pairs of a subsection, with evaluated JavaScript values.
dumpKey(String, String) - Static method in class com.google.jse4conf.Logger
 
dumpKey(String, String, String) - Static method in class com.google.jse4conf.Logger
 
dumpObjectKeyValue(String, NativeObject, String) - Method in class com.google.jse4conf.JS
Dump the key value of an object, of the given name, in the simplest JS source form.
dumpSource(String, boolean) - Method in class com.google.jse4conf.JS
Return the JS source form of a named variable; enclosed in comment if inComment is true.

E

eval(String, String) - Method in class com.google.jse4conf.JS
Eval JS code in this context and scope, caller should catch exception.
eval(String) - Method in class com.google.jse4conf.JS
 
eval(Context, Scriptable, String, String) - Static method in class com.google.jse4conf.JS
Eval JS code of a file in the given context and scope.
eval(Context, Scriptable, String) - Static method in class com.google.jse4conf.JS
Eval JS code in the given context and scope.
eval2String(String, String) - Method in class com.google.jse4conf.JS
Eval JS code in this context and scope, no exception.
eval2String(String) - Method in class com.google.jse4conf.JS
 
eval2String(Context, Scriptable, String, String) - Static method in class com.google.jse4conf.JS
Eval JS code in the given context and scope, and convert to a String.
eval2String(Context, Scriptable, String) - Static method in class com.google.jse4conf.JS
Eval JS code in the given context and scope, and convert to a String.
exit() - Method in class com.google.jse4conf.JS
Must call exit before release this object.

F

from(int) - Static method in class com.google.jse4conf.JS
Convert Java int to JS Object.
from(long) - Static method in class com.google.jse4conf.JS
Convert Java long to JS Object.
from(float) - Static method in class com.google.jse4conf.JS
Convert Java float to JS Object.
from(double) - Static method in class com.google.jse4conf.JS
Convert Java int to JS Object.
from(boolean) - Static method in class com.google.jse4conf.JS
Convert Java boolean to JS Object.

G

getCompilationErrors() - Method in class com.google.jse4conf.Conf2JS
 
getCompiledJSObject() - Method in class com.google.jse4conf.JSEConfig
 
getContext() - Method in class com.google.jse4conf.JS
Return this context.
getJSBoolean(String, String, boolean) - Method in class com.google.jse4conf.JSEConfig
Return JavaScript value of section.name as boolean, or the default value.
getJSBoolean(String, String, String, boolean) - Method in class com.google.jse4conf.JSEConfig
Return JavaScript value of section.subsection.name as boolean, or the default value.
getJSEnum(String, String, String, T) - Method in class com.google.jse4conf.JSEConfig
Call Config.getEnum to convert JS String.
getJSEnum(T[], String, String, String, T) - Method in class com.google.jse4conf.JSEConfig
Call Config.getEnum to convert JS String.
getJSInt(String, String, int) - Method in class com.google.jse4conf.JSEConfig
Return JavaScript value of section.name as int, or the default value.
getJSInt(String, String, String, int) - Method in class com.google.jse4conf.JSEConfig
Return JavaScript value of section.subsection.name as int, or the default value.
getJSKeys() - Method in class com.google.jse4conf.Section
Return all JS keys defined in this section.
getJSLong(String, String, long) - Method in class com.google.jse4conf.JSEConfig
Return JavaScript value of section.name as long, or the default value.
getJSLong(String, String, String, long) - Method in class com.google.jse4conf.JSEConfig
Return JavaScript value of section.subsection.name as long, or the default value.
getJSName() - Method in class com.google.jse4conf.Section
Return the JS variable name for this section.
getJSNames(String) - Method in class com.google.jse4conf.JSEConfig
 
getJSNames(String, String) - Method in class com.google.jse4conf.JSEConfig
 
getJSRefSpecs(String, String, String) - Method in class com.google.jse4conf.JSEConfig
Call Config.getRefSpecs to convert JS String.
getJSSectionNames() - Method in class com.google.jse4conf.Conf2JS
 
getJSString(String, String) - Method in class com.google.jse4conf.JSEConfig
Return JavaScript value of section.name as String, or null.
getJSString(String, String, String) - Method in class com.google.jse4conf.JSEConfig
Return JavaScript value of section.subsection.name as String, or null.
getJSTimeUnit(String, String, String, long, TimeUnit) - Method in class com.google.jse4conf.JSEConfig
Call Config.getTimeUnit to convert JS String; return long like getTimeUnit.
getJSValue(String, String) - Method in class com.google.jse4conf.JSEConfig
Return the JavaScript value of section.name, or null.
getJSValue(String, String, String) - Method in class com.google.jse4conf.JSEConfig
Return the JavaScript value of the name in a subsection, or null.
getKeys() - Method in class com.google.jse4conf.Section
Return all keys defined in this section.
getNames(String, String) - Method in class com.google.jse4conf.JSEConfig
 
getScope() - Method in class com.google.jse4conf.JS
Return this global scope.

H

hasError() - Method in class com.google.jse4conf.Section
Return true if there was any syntax error.
hasJSKey(String, String) - Method in class com.google.jse4conf.JSEConfig
Return true if a section has a key with JavaScript value.
hasJSKey(String, String, String) - Method in class com.google.jse4conf.JSEConfig
Return true if a subsection has a key with JavaScript value.
hasParsedKey(String) - Method in class com.google.jse4conf.Section
Return true if key has parsed JavaScript value.

J

JS - Class in com.google.jse4conf
Rhino JS/Java conversions, naming, and error messages.
JS() - Constructor for class com.google.jse4conf.JS
Create a new global default scope.
JS(JS) - Constructor for class com.google.jse4conf.JS
Create a clone with same initCode.
JS(String) - Constructor for class com.google.jse4conf.JS
Create a new global default scope initilized with given JS code.
JSEConfig - Class in com.google.jse4conf
JSEConfig extends jgit.lib.Config and accepts JS expressions as key values.
JSEConfig() - Constructor for class com.google.jse4conf.JSEConfig
 
JSEConfig(Config) - Constructor for class com.google.jse4conf.JSEConfig
 
JSEConfig(Config, String) - Constructor for class com.google.jse4conf.JSEConfig
 

K

keyMissingValue(String) - Static method in class com.google.jse4conf.JS
Error message for a key that has no parsed value.
keyValueException(String, String, String) - Static method in class com.google.jse4conf.JS
Error message for a key's JavaScript expression with given exception.

L

Logger - Class in com.google.jse4conf
A logger object prints debug/trace messages depending on the flags.

M

main(String[]) - Static method in class com.google.jse4conf.Conf2JS
 

N

nameOf(String, String) - Static method in class com.google.jse4conf.Section
Create a combined name for the given section and subsection names.
newArray(int) - Method in class com.google.jse4conf.JS
Create JS NativeArray in this context and global scope.
newArray(Object[]) - Method in class com.google.jse4conf.JS
Create JS NativeArray in this context and global scope.
newObject() - Method in class com.google.jse4conf.JS
Create JS NativeObject in this context and global scope.

P

println(String) - Static method in class com.google.jse4conf.Logger
 

R

readAllBytes(String) - Static method in class com.google.jse4conf.Conf2JS
Read bytes from a file.
reset() - Method in class com.google.jse4conf.JS
Reset to a new global scope.
reset(String) - Method in class com.google.jse4conf.JS
Reset to a new global scope with optional initCode and return last value or null.
rhinoSyntaxError(String, String, int) - Static method in class com.google.jse4conf.JS
Exception thrown by Rhino for a syntax error.
rhinoUndefinedError(String, String, int) - Static method in class com.google.jse4conf.JS
Exception thrown by Rhino for an undefined name.

S

Section - Class in com.google.jse4conf
 
Section(String, String) - Constructor for class com.google.jse4conf.Section
Create a Section of the given section and subsection names.
Section(String) - Constructor for class com.google.jse4conf.Section
Create a Section of the given section name or combined section-subsection name.
Section(String, Logger) - Constructor for class com.google.jse4conf.Section
Create a Section of the given section name or combined section-subsection name, and output debug/trace messages through the logger.
setDumpJSValues(boolean) - Method in class com.google.jse4conf.Conf2JS
 
setJSCode(String) - Method in class com.google.jse4conf.JSEConfig
 

T

toJava(Object, int) - Static method in class com.google.jse4conf.JS
Convert JS obj to Java int, or return defaultInt.
toJava(Object, long) - Static method in class com.google.jse4conf.JS
Convert JS obj to Java long, or return defaultLong.
toJava(Object, float) - Static method in class com.google.jse4conf.JS
Convert JS obj to Java float, or return defaultFloat.
toJava(Object, double) - Static method in class com.google.jse4conf.JS
Convert JS obj to Java double, or return defaultDouble.
toJava(Object, boolean) - Static method in class com.google.jse4conf.JS
Convert JS obj to Java boolean, or return defaultBoolean.
toJavaString(Object, String) - Static method in class com.google.jse4conf.JS
Convert JS obj to Java String, or return defaultString.
toJSName(String) - Static method in class com.google.jse4conf.JS
Convert a string to a valid jse4conf identifier.
trace(String) - Method in class com.google.jse4conf.Logger
 
traceAST(String, AstRoot) - Method in class com.google.jse4conf.Logger
 
traceKey(String, String) - Method in class com.google.jse4conf.Logger
 
traceKey(String, String, String) - Method in class com.google.jse4conf.Logger
 
traceVisitNameNode(Name) - Method in class com.google.jse4conf.Logger
 
traceVisitNode(String, AstNode) - Method in class com.google.jse4conf.Logger
 

U

undefinedError(String, String, String) - Static method in class com.google.jse4conf.JS
Error message for undefined names in a key's JavaScript expression.

V

validIdChar(char) - Static method in class com.google.jse4conf.JS
Check if c is a valid character for a jse4conf identifier.

W

writeToFile(String, String) - Static method in class com.google.jse4conf.Conf2JS
Write a string to a file.
A C D E F G H J K L M N P R S T U V W 




© 2015 - 2025 Weber Informatics LLC | Privacy Policy