Index

A B C D E F G I L M N O P R S T U V W 
All Classes|All Packages

A

arrayStoreCodes - Static variable in class gnu.jel.OPcall
 
arrayTypeCodes - Static variable in class gnu.jel.OPcall
 

B

Boolean - Interface in gnu.jel.reflect
Denotes the object as being automatically convertible to java boolean type.
Byte - Interface in gnu.jel.reflect
Denotes the object as being automatically convertible to java byte type.

C

c - Variable in class gnu.jel.Parser
 
cf_orig - Static variable in class gnu.jel.Evaluator
 
Character - Interface in gnu.jel.reflect
Denotes the object as being automatically convertible to java char type.
check(boolean) - Static method in class gnu.jel.debug.Debug
Checks for the condition.
check(boolean, String) - Static method in class gnu.jel.debug.Debug
Checks for the condition.
chi - Variable in class gnu.jel.OP
Holds references to children of this node
ClassFile - Class in gnu.jel
This class represents a classfile image in JEL.
ClassFile(int, String, Class<?>, Class<?>[], LocalField[]) - Constructor for class gnu.jel.ClassFile
Starts creation of a new class file.
clone() - Method in class gnu.jel.ClassFile
Makes a clone of this object.
cnmap - Variable in class gnu.jel.Library
 
code - Variable in class gnu.jel.OPbinary
code of this operation
code - Variable in class gnu.jel.OPunary
code of this operation
code(long) - Method in class gnu.jel.ClassFile
code up to 8 operations.
codeB(long) - Method in class gnu.jel.ClassFile
 
codeLDC(Object, int) - Method in class gnu.jel.ClassFile
generates code for code loading constant of primitive type or string.
codeM(Member) - Method in class gnu.jel.ClassFile
 
col - Variable in exception gnu.jel.CompilationException
 
compare(String, String) - Static method in class gnu.jel.CompiledExpression
 
CompilationException - Exception in gnu.jel
Represents an error encountered during the compilation.
CompilationException(int, Object) - Constructor for exception gnu.jel.CompilationException
Constructs new CompilationException with a single formatting parameter.
compile(ClassFile) - Method in class gnu.jel.OP
Called to generate the code implementing this OP.
compile(ClassFile) - Method in class gnu.jel.OPbinary
 
compile(ClassFile) - Method in class gnu.jel.OPcall
 
compile(ClassFile) - Method in class gnu.jel.OPcondtnl
 
compile(ClassFile) - Method in class gnu.jel.OPload
 
compile(ClassFile) - Method in class gnu.jel.OPunary
 
compile(String, Library) - Static method in class gnu.jel.Evaluator
Compiles expression, resolving the function names in the library.
compile(String, Library, Class<?>) - Static method in class gnu.jel.Evaluator
Compiles expression, resolving the function names in the library.
compileBits(String, Library) - Static method in class gnu.jel.Evaluator
Compiles expression, resolving the function names in the library.
compileBits(String, Library, Class<?>) - Static method in class gnu.jel.Evaluator
Compiles expression, resolving the function names in the library.
CompiledExpression - Class in gnu.jel
This abstract class is a superclass of every JEL-compiled expression, each of which overrides some of the abstract methods below.
CompiledExpression() - Constructor for class gnu.jel.CompiledExpression
 
consume(int) - Method in class gnu.jel.Parser
 
ct_column - Variable in class gnu.jel.Parser
Column, where the current token started
ct_line - Variable in class gnu.jel.Parser
Line, where the current token started

D

Debug - Class in gnu.jel.debug
This class used for incorporating internal checks and assertions into the code.
Debug() - Constructor for class gnu.jel.debug.Debug
 
describe(String, Class<?>[]) - Static method in class gnu.jel.Library
 
Double - Interface in gnu.jel.reflect
Denotes the object as being automatically convertible to java double type.
DVMap - Class in gnu.jel
Provides the information about defined dynamic variables.
DVMap() - Constructor for class gnu.jel.DVMap
 

E

enabled - Static variable in class gnu.jel.debug.Debug
Determines if debugging is enabled in current compilation.
error(int, Object, int) - Method in class gnu.jel.Parser
 
eval() - Method in class gnu.jel.OP
Called to evaluate this node and all its sub-nodes.
eval() - Method in class gnu.jel.OPbinary
 
eval() - Method in class gnu.jel.OPcall
Attempts to evaluate this function.
eval() - Method in class gnu.jel.OPcondtnl
 
eval() - Method in class gnu.jel.OPload
 
eval() - Method in class gnu.jel.OPunary
 
eval_methods - Static variable in class gnu.jel.Evaluator
 
evaluate(Object[]) - Method in class gnu.jel.CompiledExpression
Evaluates the expression, representing result as an object.
evaluate_boolean(Object[]) - Method in class gnu.jel.CompiledExpression
Evaluates the expression whose result has type boolean.
evaluate_byte(Object[]) - Method in class gnu.jel.CompiledExpression
Evaluates the expression whose result has type byte.
evaluate_char(Object[]) - Method in class gnu.jel.CompiledExpression
Evaluates the expression whose result has type char.
evaluate_double(Object[]) - Method in class gnu.jel.CompiledExpression
Evaluates the expression whose result has type double.
evaluate_float(Object[]) - Method in class gnu.jel.CompiledExpression
Evaluates the expression whose result has type float.
evaluate_int(Object[]) - Method in class gnu.jel.CompiledExpression
Evaluates the expression whose result has type int.
evaluate_long(Object[]) - Method in class gnu.jel.CompiledExpression
Evaluates the expression whose result has type long.
evaluate_short(Object[]) - Method in class gnu.jel.CompiledExpression
Evaluates the expression whose result has type short.
evaluate_void(Object[]) - Method in class gnu.jel.CompiledExpression
Evaluates the expression whose result has type void.
Evaluator - Class in gnu.jel
This is the main frontend to JEL.
Evaluator() - Constructor for class gnu.jel.Evaluator
 

F

Float - Interface in gnu.jel.reflect
Denotes the object as being automatically convertible to java float type.

G

getApplicable(Class<?>, String, Class<?>[], HashMap<String, Member>, int) - Method in class gnu.jel.Library
Returns applicable methods, for the call.
getColumn() - Method in exception gnu.jel.CompilationException
Used to obtain the column, where error have occurred.
getConstValue() - Method in class gnu.jel.LocalField
Returns a value of the public static final field.
getDeclaringClass() - Method in class gnu.jel.LocalField
 
getDynamicMethodClassID(Member) - Method in class gnu.jel.Library
Returns ID (position in the object array) of the dynamic method.
getExceptionTypes() - Method in class gnu.jel.LocalMethod
Used to get checked exceptions thrown by this method
getImage() - Method in class gnu.jel.ClassFile
Finishes class and returns the resulting bytecode.
getIndex(Object, int) - Method in class gnu.jel.ClassFile
Used to determine an old CP index or to create a new one for an item.
getMember(Class<?>, String, Class<?>[]) - Method in class gnu.jel.Library
Searches the namespace defined by this library object for method or field.
getMessage() - Method in exception gnu.jel.CompilationException
Used to obtain the formatted error message.
getModifiers() - Method in class gnu.jel.LocalField
 
getMostSpecific(Class<?>, String, Class<?>[], List<Member>, int) - Method in class gnu.jel.Library
Returns the most specific method, matching the call.
getMsg(int, Object[]) - Static method in class gnu.jel.TableKeeper
 
getName() - Method in class gnu.jel.LocalField
 
getParameters() - Method in exception gnu.jel.CompilationException
Used to obtain the parameters for this error.
getParameterTypes() - Method in class gnu.jel.LocalMethod
Used to obtain types of formal parameters of this method.
getParameterTypes(Member, int) - Static method in class gnu.jel.Library
Used to get types of formal parameters of a member.
getSignature(Class<?>) - Static method in class gnu.jel.Library
Computes the signature of the given class.
getSignature(Member) - Static method in class gnu.jel.Library
Computes signature of the given member.
getTable(String) - Static method in class gnu.jel.TableKeeper
Used to get a reference to the named int[][] table.
getType() - Method in exception gnu.jel.CompilationException
Used to obtain the error code.
getType() - Method in class gnu.jel.CompiledExpression
Returns type of the expression result.
getType() - Method in class gnu.jel.LocalField
 
getType(Member) - Static method in class gnu.jel.Library
Used to get return type of a class member.
getTypeC() - Method in class gnu.jel.CompiledExpression
Returns the type of the expression result.
getTypeName(String) - Method in class gnu.jel.DVMap
Returns the name of the type of the named property.
getValue() - Method in interface gnu.jel.reflect.Boolean
 
getValue() - Method in interface gnu.jel.reflect.Byte
 
getValue() - Method in interface gnu.jel.reflect.Character
 
getValue() - Method in interface gnu.jel.reflect.Double
 
getValue() - Method in interface gnu.jel.reflect.Float
 
getValue() - Method in interface gnu.jel.reflect.Integer
 
getValue() - Method in interface gnu.jel.reflect.Long
 
getValue() - Method in interface gnu.jel.reflect.Short
 
gnu.jel - package gnu.jel
 
gnu.jel.debug - package gnu.jel.debug
 
gnu.jel.reflect - package gnu.jel.reflect
 

I

ImageLoader - Class in gnu.jel
Loads JEL-generated classes into Java VM.
Integer - Interface in gnu.jel.reflect
Denotes the object as being automatically convertible to java int type.
isCast() - Method in class gnu.jel.Parser
 
isField(Member) - Static method in class gnu.jel.Library
 
isStateless(Member) - Method in class gnu.jel.Library
Used to check if the given method is stateless.
isSynthetic() - Method in class gnu.jel.LocalField
 
isWidening(int, Class<?>, int, Class<?>) - Static method in class gnu.jel.OP
Used to find out if the conversion t1->t2 is widening.
isWidening(Class<?>, Class<?>) - Static method in class gnu.jel.OP
Used to find out if the conversion t1->t2 is widening.

L

Library - Class in gnu.jel
A namespace for JEL expressions.
Library(Class<?>[], Class<?>[], Class<?>[], DVMap, HashMap<String, Class<?>>) - Constructor for class gnu.jel.Library
Creates a library for JEL.
load(byte[]) - Static method in class gnu.jel.ImageLoader
Loads given JEL-generated image under its own name.
loadClass(String, boolean) - Method in class gnu.jel.ImageLoader
 
LocalField - Class in gnu.jel
Represents a field local to the class being compiled.
LocalField(int, Class<?>, String, Object) - Constructor for class gnu.jel.LocalField
Constructs a new local field.
LocalMethod - Class in gnu.jel
Represents a method local to the class being compiled.
LocalMethod(int, Class<?>, String, Class<?>[], Class<?>[]) - Constructor for class gnu.jel.LocalMethod
Constructs a new local method.
Long - Interface in gnu.jel.reflect
Denotes the object as being automatically convertible to java long type.

M

m - Variable in class gnu.jel.OPcall
Holds method to be executed
main(String[]) - Static method in class gnu.jel.TableWriter
 
markStateDependent(String, Class<?>[]) - Method in class gnu.jel.Library
This method marks a static member as having the internal state.

N

narrow(Number, int) - Static method in class gnu.jel.OP
Narrows the value back to desired primitiva type.
newMethod(LocalMethod, Class<?>[]) - Method in class gnu.jel.ClassFile
Starts a new method of this class.
nextToken() - Method in class gnu.jel.Parser
 
noteStk(int, int) - Method in class gnu.jel.ClassFile
Notes removal of typeID s and subsequent addition of typeID a to Java stack.
nplv - Variable in class gnu.jel.OPcall
local variable number (in case m=null), number of formal parameters of the method to call otherwise.

O

OP - Class in gnu.jel
A tree node, representing an operation.
OP() - Constructor for class gnu.jel.OP
 
OPbinary - Class in gnu.jel
A tree node, representing binary operation.
OPbinary(Stack<OP>, int) - Constructor for class gnu.jel.OPbinary
Constructs a new binary operation.
OPcall - Class in gnu.jel
A tree node, representing a method call (field/local variable load).
OPcall(int, Class<?>) - Constructor for class gnu.jel.OPcall
Prepares access to the local variable (formal parameter) of method.
OPcall(Member, int, Stack<OP>, boolean) - Constructor for class gnu.jel.OPcall
Prepares a new method/field call/get operation to be added to the code.
OPcondtnl - Class in gnu.jel
A tree node, representing conditional.
OPcondtnl(Stack<OP>) - Constructor for class gnu.jel.OPcondtnl
Creates conditional operator.
OPload - Class in gnu.jel
A tree node, representing loading of a constant.
OPload(OP, Object) - Constructor for class gnu.jel.OPload
Creates an OP, loading a constant to be put instead of another OP.
OPload(Object) - Constructor for class gnu.jel.OPload
Creates an OP, loading a constant.
OPunary - Class in gnu.jel
A tree node, representing unary operation.
OPunary(Stack<OP>, int) - Constructor for class gnu.jel.OPunary
Constructs a new unary operation.
OPunary(Stack<OP>, int, Class<?>, boolean) - Constructor for class gnu.jel.OPunary
Creates conversion operation to the given class.

P

parse(Class<?>) - Method in class gnu.jel.Parser
Parses expression.
Parser - Class in gnu.jel
 
Parser(String, Library) - Constructor for class gnu.jel.Parser
Initializes the parser.
println(String) - Static method in class gnu.jel.debug.Debug
Prints a line of the debug output.
promotions - Static variable in class gnu.jel.OPbinary
binary promotions of base types

R

read() - Method in class gnu.jel.Parser
Reads character from underlying Reader.
reportThrowable(Throwable) - Static method in class gnu.jel.debug.Debug
Reports an exception, which should not occur(i.e.
reportThrowable(Throwable, String) - Static method in class gnu.jel.debug.Debug
Reports an exception, which should not occur(i.e.
resID - Variable in class gnu.jel.OP
Holds type ID of the result of this OP
resolver - Variable in class gnu.jel.Library
 
resType - Variable in class gnu.jel.OP
Holds type of the result of this OP
retID_patchback - Static variable in class gnu.jel.Evaluator
 
retIDC_patchback - Static variable in class gnu.jel.Evaluator
 

S

Short - Interface in gnu.jel.reflect
Denotes the object as being automatically convertible to java short type.
specialTypes - Static variable in class gnu.jel.OP
Classes of the special types by ID.
String - Interface in gnu.jel.reflect
Denotes the object as being automatically convertible to java String type using its .toString() method.

T

TableKeeper - Class in gnu.jel
 
TableKeeper() - Constructor for class gnu.jel.TableKeeper
 
TableWriter - Class in gnu.jel
 
TableWriter() - Constructor for class gnu.jel.TableWriter
 
toHistoricalForm(String) - Static method in class gnu.jel.Library
 
translate(String) - Method in class gnu.jel.DVMap
Translates the variable name (a String) to a constant of any primtive type (e.g.
type - Variable in class gnu.jel.Parser
type of the current token
typeID(Class<?>) - Static method in class gnu.jel.OP
Identifies the primitive type of the given class.
typeIDObject(Object) - Static method in class gnu.jel.OP
Identify the primitive type corresponding to the given reflection object.

U

unary_prmtns - Static variable in class gnu.jel.OPunary
unary promotions of base types
unwrapType - Static variable in class gnu.jel.OP
Unwraps the type ID.

V

val - Variable in class gnu.jel.Parser
value of the current token wrapped into a reflection object

W

what - Variable in class gnu.jel.OPload
Holds an object to be loaded
widen(Object, int) - Static method in class gnu.jel.OP
Makes widest possible representation of a value of Java primitive type.
A B C D E F G I L M N O P R S T U V W 
All Classes|All Packages