Index

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

A

add(Object, Object) - Static method in class ru.proninyaroslav.template.BuiltinsFuncs
Evaluates a + b
addFuncs(FuncMap) - Method in class ru.proninyaroslav.template.Template
 
addParseTree(String, Tree) - Method in class ru.proninyaroslav.template.Template
Adds parse tree for template with given name and associates it with template.
and(Object, Object...) - Static method in class ru.proninyaroslav.template.BuiltinsFuncs
Computes the boolean AND of its arguments, returning the first false argument it encounters, or the last argument

B

BuiltinsFuncs - Class in ru.proninyaroslav.template
 
BuiltinsFuncs() - Constructor for class ru.proninyaroslav.template.BuiltinsFuncs
 

C

ClassUtils - Class in ru.proninyaroslav.template
 
ClassUtils() - Constructor for class ru.proninyaroslav.template.ClassUtils
 
compare(Object, Object, String) - Static method in class ru.proninyaroslav.template.BuiltinsFuncs
 
contains(String) - Method in class ru.proninyaroslav.template.FuncMap
 

D

div(Object, Object) - Static method in class ru.proninyaroslav.template.BuiltinsFuncs
Evaluates a / b
doArithmetic(Object, Object, char) - Static method in class ru.proninyaroslav.template.BuiltinsFuncs
 

E

equal(Object, Object...) - Static method in class ru.proninyaroslav.template.BuiltinsFuncs
Evaluates the comparison a == b || a == c || ...
errorContext(Node) - Method in class ru.proninyaroslav.template.Tree
 
errorLocation(Node) - Method in class ru.proninyaroslav.template.Tree
 
ExecException - Exception in ru.proninyaroslav.template.exceptions
 
ExecException(Exception) - Constructor for exception ru.proninyaroslav.template.exceptions.ExecException
 
ExecException(String) - Constructor for exception ru.proninyaroslav.template.exceptions.ExecException
 
execute(OutputStream, Object) - Method in class ru.proninyaroslav.template.Template
Applies a parsed template to the specified data object, and writes the output to OutputStream.
executeTemplate(OutputStream, String, Object) - Method in class ru.proninyaroslav.template.Template
Applies the template associated with this template that has the given name to the specified data object and writes the output to OutputStream

F

findField(Class<?>, String) - Static method in class ru.proninyaroslav.template.ClassUtils
 
findMethods(Class<?>, String) - Static method in class ru.proninyaroslav.template.ClassUtils
 
FuncMap - Class in ru.proninyaroslav.template
Provides functions, that are executed inside the template.
FuncMap() - Constructor for class ru.proninyaroslav.template.FuncMap
 

G

get(String) - Method in class ru.proninyaroslav.template.FuncMap
Find function (or functions, if it is overridden) by alias name and returns it
getAll() - Method in class ru.proninyaroslav.template.FuncMap
 
getTemplate(String) - Method in class ru.proninyaroslav.template.Template
 
getTemplates() - Method in class ru.proninyaroslav.template.Template
 
greaterThan(Object, Object) - Static method in class ru.proninyaroslav.template.BuiltinsFuncs
Evaluates the comparison a > b
greaterThanOrEqual(Object, Object) - Static method in class ru.proninyaroslav.template.BuiltinsFuncs
Evaluates the comparison a >= b

I

index(Object, Object...) - Static method in class ru.proninyaroslav.template.BuiltinsFuncs
Returns the result of indexing its first argument by the following arguments, e.g.
InternalException - Exception in ru.proninyaroslav.template.exceptions
 
InternalException(Exception) - Constructor for exception ru.proninyaroslav.template.exceptions.InternalException
 
InternalException(String) - Constructor for exception ru.proninyaroslav.template.exceptions.InternalException
 
isEmptyTree(Node) - Static method in class ru.proninyaroslav.template.Tree
Reports whether this tree (node) is empty of everything but space

L

lessThan(Object, Object) - Static method in class ru.proninyaroslav.template.BuiltinsFuncs
Evaluates the comparison a < b
lessThanOrEqual(Object, Object) - Static method in class ru.proninyaroslav.template.BuiltinsFuncs
Evaluates the comparison a <= b

M

mod(Object, Object) - Static method in class ru.proninyaroslav.template.BuiltinsFuncs
Evaluates a % b
mul(Object, Object) - Static method in class ru.proninyaroslav.template.BuiltinsFuncs
Evaluates a * b

N

name - Variable in class ru.proninyaroslav.template.Tree
 
not(Object) - Static method in class ru.proninyaroslav.template.BuiltinsFuncs
Returns the boolean negation of its argument
notEqual(Object, Object) - Static method in class ru.proninyaroslav.template.BuiltinsFuncs
Evaluates the comparison a != b

O

or(Object, Object...) - Static method in class ru.proninyaroslav.template.BuiltinsFuncs
Computes the boolean OR of its arguments, returning the first true argument it encounters, or the last argument

P

parse(InputStream) - Method in class ru.proninyaroslav.template.Template
 
parse(String) - Method in class ru.proninyaroslav.template.Template
Named template definition ({define ...}) in text define additional templates associated with template and are removed from the definition of template itself.
parse(String, String, String, String, FuncMap...) - Static method in class ru.proninyaroslav.template.Tree
 
parse(FuncMap, File...) - Static method in class ru.proninyaroslav.template.Template
Create templates from the file list
parse(FuncMap, Map<String, String>) - Static method in class ru.proninyaroslav.template.Template
Create templates from the map, that represent pair (Name, InputStream)
ParseException - Exception in ru.proninyaroslav.template.exceptions
 
ParseException(Exception) - Constructor for exception ru.proninyaroslav.template.exceptions.ParseException
 
ParseException(String) - Constructor for exception ru.proninyaroslav.template.exceptions.ParseException
 
parseName - Variable in class ru.proninyaroslav.template.Tree
 
parseTo(FuncMap, File...) - Method in class ru.proninyaroslav.template.Template
Create templates from the file list and append to this template
parseTo(FuncMap, Map<String, String>) - Method in class ru.proninyaroslav.template.Template
Create templates from the map, that represent pair (Name, Text) and append to this template
print(Object...) - Static method in class ru.proninyaroslav.template.BuiltinsFuncs
Uses the default formats for its arguments and returns the resulting string.
println(Object...) - Static method in class ru.proninyaroslav.template.BuiltinsFuncs
Uses the default formats for its arguments and returns the resulting string.
put(String, String, Class) - Method in class ru.proninyaroslav.template.FuncMap
Find static method (or methods, if it is overridden) in the specified class and put it in the map.
put(Map<String, String>, Class) - Method in class ru.proninyaroslav.template.FuncMap
 
put(FuncMap) - Method in class ru.proninyaroslav.template.FuncMap
 

R

range(int) - Static method in class ru.proninyaroslav.template.BuiltinsFuncs
Generate number sequence from 0 to stop with a given step (default 1)
range(int, int) - Static method in class ru.proninyaroslav.template.BuiltinsFuncs
Generate number sequence from start to stop with a given step (default 1)
range(int, int, int) - Static method in class ru.proninyaroslav.template.BuiltinsFuncs
Generate number sequence from start to stop with a given step
root - Variable in class ru.proninyaroslav.template.Tree
 
ru.proninyaroslav.template - package ru.proninyaroslav.template
 
ru.proninyaroslav.template.exceptions - package ru.proninyaroslav.template.exceptions
 

S

setDelims(String, String) - Method in class ru.proninyaroslav.template.Template
 
sub(Object, Object) - Static method in class ru.proninyaroslav.template.BuiltinsFuncs
Evaluates a - b

T

Template - Class in ru.proninyaroslav.template
Representation of a parsed template
Template(String) - Constructor for class ru.proninyaroslav.template.Template
 
Template(String, Template) - Constructor for class ru.proninyaroslav.template.Template
Allocates a new, undefined template associated with the given one and with the same delimiters.
Tree - Class in ru.proninyaroslav.template
Representation of a single parsed template
Tree(String, String, String, FuncMap...) - Constructor for class ru.proninyaroslav.template.Tree
 
Tree(String, FuncMap...) - Constructor for class ru.proninyaroslav.template.Tree
 
A B C D E F G I L M N O P R S T 
All Classes and Interfaces|All Packages|Serialized Form