A B C D E F G H I K M N O P R S T V

A

addNewConstructor(OJMethod) - Method in class PremChaRM.OJSubClass
This method add Constructor to the class
addNewFields(OJField) - Method in class PremChaRM.OJSubClass
This method add field to the class
addNewFields(Vector) - Method in class PremChaRM.OJSubClass
This method add fields to the class
addNewMethods(OJMethod) - Method in class PremChaRM.OJSubClass
Add method to the class
addNewMethods(Vector) - Method in class PremChaRM.OJSubClass
Add methods to the class
array2Vector(Object[]) - Static method in class PremChaRM.PreUtils
This utility get a Vector object from an array one.

B

bUsedFields - Variable in class PremChaRM.PreGraph
This field contains, for each field, the info about which class use it.
bUsedMethods - Variable in class PremChaRM.PreGraph
This field contains, for each method, the info about which class invoke it.

C

cascadeMethods(OJClass) - Method in class PremChaRM.PremChaRM
This method return all method declared in a class hierarchy.
changeReferenceExpr(Expression, Environment) - Method in class PremChaRM.PremChaRM
This method do a recursive parsing to find typeName to change.
className - Variable in class PremChaRM.OJSubClass
This is the name of the class.
className - Static variable in class PremChaRM.PreUtils
This field contains the name of the class instanciating PremChaRM class.
CLASSNAME - Static variable in class PremChaRM.PremChaRM
This constant represent name class. it is an index of memory structure that contains information about index classes
constructors - Variable in class PremChaRM.OJSubClass
This field contains the constructors.
CORE - Static variable in class PremChaRM.PremChaRM
This constant represent the core.
coreMethods - Variable in class PremChaRM.PremChaRM
This array contains all methods of create Core class.

D

DangerousFields() - Method in class PremChaRM.PreGraph
This method checks if fields are dangerous, in other words it control if a fields is used by more than one class.
dbgAllocation - Static variable in class PremChaRM.PreUtils
Constant value for debugging.
dbgGraphField - Static variable in class PremChaRM.PreUtils
Constant value for debugging.
dbgGraphMethod - Static variable in class PremChaRM.PreUtils
Constant value for debugging.
dbgMethodCall - Static variable in class PremChaRM.PreUtils
Constant value for debugging.
dbgOpenClasses - Static variable in class PremChaRM.PreUtils
Constant value for debugging.
dbgPrepClasses - Static variable in class PremChaRM.PreUtils
Constant value for debugging.
dbgPrintClasses - Static variable in class PremChaRM.PreUtils
Constant value for debugging.
dbgPrintExpression - Static variable in class PremChaRM.PreUtils
Constant value for debugging.
dbgSyntax - Static variable in class PremChaRM.PreUtils
Constant value for debugging.
dbgUtils - Static variable in class PremChaRM.PreUtils
Constant value for debugging.
debugLevel - Static variable in class PremChaRM.PreUtils
Boolean array determining which debug levels have to be considered.
DeleteFields(OJField) - Method in class PremChaRM.OJSubClass
This method delete field to the class
DeleteFields(Vector) - Method in class PremChaRM.OJSubClass
This method delete fields to the class
DeleteMethods(OJMethod) - Method in class PremChaRM.OJSubClass
Delete method to the class
DeleteMethods(Vector) - Method in class PremChaRM.OJSubClass
Delete methods to the class

E

ENRICHNAME - Static variable in class PremChaRM.PremChaRM
This constant represent the enriches clause.
equalsParameterType(OJMethod, OJMethod) - Static method in class PremChaRM.PreUtils
This method tests if two OJMethod objects have the same parameter types.
equalsParameterType(String[], String[]) - Static method in class PremChaRM.PreUtils
This method tests if two arrays of String have the same values.
expandAllocation(Environment, AllocationExpression) - Method in class PremChaRM.PremChaRM
This method is invoked on every AllocationExpression instance of start class.
expandMethodCall(Environment, MethodCall) - Method in class PremChaRM.PremChaRM
This method is invoked on every MethodCall instance of start class not tested yet.
expandTypeName(Environment, TypeName) - Method in class PremChaRM.PremChaRM
This method is invoked on every TypeName instance of start class.
expandVariableDeclaration(Environment, VariableDeclaration) - Method in class PremChaRM.PremChaRM
This method is invoked on every VariableDeclaration instance of start class.
expressionHandling(Expression, Vector, Vector) - Static method in class PremChaRM.PreUtils
This method returns all fields accessed by the given expression.
ExtendedSyntax - Variable in class PremChaRM.PremChaRM
This variable contains the parse tree reapresentanting the extedend syntax.

F

fieldAt(int) - Method in class PremChaRM.PreGraph
This method return the OJField object specified by index.
fieldHandling(StatementList, Vector, Vector) - Static method in class PremChaRM.PreUtils
This method returns all fields accessed by the given statements.
fieldUsedBy(int) - Method in class PremChaRM.PreGraph
This method return an array that rapresent in which classes the field is used.
fieldUsedBy(int, int) - Method in class PremChaRM.PreGraph
This method check if a field is used in a class.
finalize() - Method in class PremChaRM.OJSubClass
 
firstTime - Variable in class PremChaRM.PremChaRM
During a process that translate class that contains main, is possible that in several situation the programm need information contained in OJMI, this flag used in combination of function HandleFirstTime( String ) permitt to access to information only one time.
fstLineConstr - Variable in class PremChaRM.OJSubClass
This field contains, if present, the invocation of costructor in first line of constructor.

G

getCalledMethods(OJMethod, Vector, Vector) - Static method in class PremChaRM.PreUtils
This method returns all MethodCall expressions present in the given OJMethod object's body.
getCalledMethodsByExpression(Expression, Vector, Vector, ClosedEnvironment) - Static method in class PremChaRM.PreUtils
This method returns all MethodCall expressions found examining given expression.
getCalledMethodsByStatement(Statement, Vector, Vector, ClosedEnvironment) - Static method in class PremChaRM.PreUtils
This method returns all MethodCall expressions found examining given statement.
getCalledMethodsByVariableInitializer(VariableInitializer, Vector, Vector, ClosedEnvironment) - Static method in class PremChaRM.PreUtils
This method returns all MethodCall expressions found examining given VariableInitializer.
getDeclSuffixRule(String) - Static method in class PremChaRM.PremChaRM
Function predefined in OJClass, is used to get a parse tree of added syntax.
getInterfacesStr() - Method in class PremChaRM.OJSubClass
This method return name of inmpleted interface.
getName() - Method in class PremChaRM.OJSubClass
This method return name of this class.
getName() - Static method in class PremChaRM.PreUtils
This method read the name of the class instanciating PremChaRM class.
getSuperClass() - Method in class PremChaRM.OJSubClass
This method return the superclass of this class.

H

HandleFirstTime(String) - Method in class PremChaRM.PremChaRM
This method takes the info in OJMI file of sterting class.

I

insertConstructorMethods(int) - Method in class PremChaRM.PremChaRM
This method finds particulary methods representing constructors.
insertFields(OJField, int[]) - Method in class PremChaRM.PreGraph
Put a field in the graph.
insertLateBindingMethods(int) - Method in class PremChaRM.PremChaRM
This method find methods, in start class, that override someone else in hierarchy class specified by className.
insertMethod(OJMethod, int) - Method in class PremChaRM.PreGraph
Put a method in the graph.
insertMethodsFrom(OJMethod, int) - Method in class PremChaRM.PremChaRM
This method insert in graph the starting method and all method called in.
isDefined - Variable in class PremChaRM.PremChaRM
Every cell of array meaning that relative output Class is defined.
isRegisteredKeyword(String) - Static method in class PremChaRM.PremChaRM
Function predefined in OJClass, is used to check if the keyword present in added syntax regard current OJClass

K

KIND - Static variable in class PremChaRM.PremChaRM
This constant represent the kind.

M

methodAt(int) - Method in class PremChaRM.PreGraph
This method return OJMethod specified by given index.
methodCall2OJMethod(MethodCall, Environment) - Method in class PremChaRM.PremChaRM
This method perform the translation of MethodCall into OJMethod.
methodUsedBy(int) - Method in class PremChaRM.PreGraph
This method return an array that rapresent in which classes a method is called.
methodUsedBy(int, int) - Method in class PremChaRM.PreGraph
This method check if a method is used by a class.

N

NAME_BASE_CLASSES - Static variable in class PremChaRM.PremChaRM
This array of constant contains the names of base classes.
NAME_START_METHODS - Static variable in class PremChaRM.PremChaRM
This array of constant contains the names of the base methods.
numberOfFields() - Method in class PremChaRM.PreGraph
This method return the number of fields stored.
numberOfMethods() - Method in class PremChaRM.PreGraph
This method return the number of methods stored.

O

ojcImplementInterface - Variable in class PremChaRM.OJSubClass
This field contains the interface implemented by this class.
ojcMySuperClass - Variable in class PremChaRM.OJSubClass
This field contains the Superclass of this OJClass.
ojFields - Variable in class PremChaRM.PreGraph
This field contains all fields of the class.
ojFields - Variable in class PremChaRM.PremChaRM
This variable contains all fields of starting class.
ojfMyFields - Variable in class PremChaRM.OJSubClass
This field contains all the fields that must be inserted into the class.
ojGraph - Variable in class PremChaRM.PremChaRM
Instance of Graph, is used to check the consistence of an access to fields.
ojMethods - Variable in class PremChaRM.PreGraph
This field contains all methods of the class.
ojMethods - Variable in class PremChaRM.PremChaRM
This Vector contains all the method declared in base class
ojMethodsCore - Variable in class PremChaRM.PremChaRM
This Vector contains the method of hierarchy of the Core.
ojMethodsReceiver - Variable in class PremChaRM.PremChaRM
This Vector contains the method of hierarchy of the Receiver.
ojMethodsSender - Variable in class PremChaRM.PremChaRM
This Vector contains the method of hierarchy of the Sender.
OJMIclassNames - Variable in class PremChaRM.PremChaRM
This array contains name of output class create during a translating process.
ojmMyMethods - Variable in class PremChaRM.OJSubClass
This field contains all the methods that must be inserted into the output class.
ojsCore - Variable in class PremChaRM.PremChaRM
This OJSubClass contains, if present, the new class CORE
ojsReceiver - Variable in class PremChaRM.PremChaRM
This OJSubClass contains, if present, the new class RECEIVER
ojsSender - Variable in class PremChaRM.PremChaRM
This OJSubClass contains, if present, the new class SENDER
OJSubClass - class PremChaRM.OJSubClass.
This class represents the structure of a class and allow to write to disk the code it contains.
OJSubClass(String, String, String[]) - Constructor for class PremChaRM.OJSubClass
This constructor have to be used if class have no interfaces.
OJSubClass(String, String, String[], String[]) - Constructor for class PremChaRM.OJSubClass
This constructor have to be used if class have some interfaces.
openClasses() - Method in class PremChaRM.PremChaRM
This method create the output class.
overriddenMethod(OJMethod, OJMethod) - Static method in class PremChaRM.PreUtils
Check if two given OJMethod objects are overridden.

P

parseConstr(String) - Method in class PremChaRM.PremChaRM
 
parseConstr(StringTokenizer, char) - Method in class PremChaRM.PremChaRM
 
PreGraph - class PremChaRM.PreGraph.
This class representing the structure of fields and methods used to resolve the problem of sharing out.
PreGraph() - Constructor for class PremChaRM.PreGraph
 
PremChaRM - class PremChaRM.PremChaRM.
This class represents the OpenJava Preprocessor for a class containing the mChaRM mechanism.
PremChaRM(Class, MetaInfo) - Constructor for class PremChaRM.PremChaRM
 
PremChaRM(Environment, OJClass, ClassDeclaration) - Constructor for class PremChaRM.PremChaRM
 
prepareClasses() - Method in class PremChaRM.PremChaRM
This method makes two different works: first, it initializes the three output classes inserting import clauses and the relative constructor; then it creates graphs for methods and fields, finally inserts right fields and methods in relative class.
prepareMainClass() - Method in class PremChaRM.PremChaRM
This method delete main class and add three instance of the generated classes.
PreUtils - class PremChaRM.PreUtils.
This class contains lots of utilities for PremChaRM class.
PreUtils() - Constructor for class PremChaRM.PreUtils
 
printAllFields() - Method in class PremChaRM.OJSubClass
This method print all fields calling printField method for each field.
printAllMethods() - Method in class PremChaRM.OJSubClass
This method print all methods to the output file calling printMethod method for each OJMethod.
printClasses() - Method in class PremChaRM.PremChaRM
This method write on file the code of the three classes if they are defining.
printConstructor() - Method in class PremChaRM.OJSubClass
This method print the constructor of the class to the output file (with the exception it throws).
printDebug(String, int, int) - Static method in class PremChaRM.PreUtils
Print on standard output the given string if the cell of debugLevel[] specified by type is true.
printExceptionText(String, Throwable) - Static method in class PremChaRM.PreUtils
Print on standard error the given string followed by the stack trace of the given expression.
printField(OJField) - Method in class PremChaRM.OJSubClass
This method print the specified field (whith its modifiers and type) to the output file.
printHeader() - Method in class PremChaRM.OJSubClass
This method print the initial part of the class.
printImports() - Method in class PremChaRM.OJSubClass
This method print all imports int the output file.
printMethod(OJMethod) - Method in class PremChaRM.OJSubClass
This method print the specified method to the output file.
printOutputClass() - Method in class PremChaRM.OJSubClass
This method print the whole class.
PROVIDESNAME - Static variable in class PremChaRM.PremChaRM
This constant represent the provides clause.
psOutputFile - Variable in class PremChaRM.OJSubClass
File object representing output class.

R

RECEIVER - Static variable in class PremChaRM.PremChaRM
This constant represent the receiver.

S

SENDER - Static variable in class PremChaRM.PremChaRM
This constant represent the sender.
setImports(String[]) - Method in class PremChaRM.OJSubClass
This method set the imports of this class.
setName(String) - Static method in class PremChaRM.PreUtils
This method allow to change the name of the class instanciating PremChaRM class.
statementHandling(Statement, Vector, Vector) - Static method in class PremChaRM.PreUtils
This method returns all fields accessed by the given statement.
strImports - Variable in class PremChaRM.OJSubClass
This field contains all the imports of the class.

T

translateDefinition() - Method in class PremChaRM.PremChaRM
This is the starting point of pre-compiling.

V

VariableInitializerHandling(VariableInitializer, Vector, Vector) - Static method in class PremChaRM.PreUtils
This method returns all fields accessed by the given VariableInitializer.

A B C D E F G H I K M N O P R S T V