|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectentities.LimitedClassEntity
The LimitedClassEntity class represents the information regarding a C++ Class. It is used to represent any class in the preprocessed file and not only those defined by the user. It contains only the fields and the the method declaration.
Constructor Summary | |
LimitedClassEntity(java.lang.String name,
java.lang.String file)
Construct a new LimitedClassEntity |
Method Summary | |
void |
addClass(ClassEntity cl)
Add a ClassEntity object to Module, NameSpace, ClassEntity objects |
void |
addClassHeaderFile(java.lang.String className,
java.lang.String headerFileName)
Add the correspondence between a class name and the file in which the class is defined |
void |
addEnumerator(Enumerator en)
Add an Enumerator object |
void |
addExpression(Expression expression,
ScopeManager wrapper)
Add an Expression object to Module, NamesSpace, Function, Method and Expression objects |
void |
addExternalField(Variable variable)
Add an external Field object to Module or NameSpace objects |
void |
addExternalMethod(Method method)
Add an external Method object to Module or NameSpace objects |
void |
addField(Variable field)
Add a Variable object to the field |
void |
addFriendClass(Variable v)
Add a Variable object that represents a friend class |
void |
addFriendFunction(Function f)
Add a friend Function object |
void |
addFriendMethod(Method m)
Add a friend Method object |
void |
addFunction(Function function)
Add a Function object to Module, NameSpace objects |
void |
addGeneralization(SuperClass superClass)
Add a SuperClass object |
void |
addMethod(Method method)
Add a Method object |
void |
addNameSpace(NameSpace namespace)
Add a NameSpace object to Module or NameSpace object |
void |
addNewGeneralization(LimitedClassEntity superClass)
Add a LimitedClassEntity corresponding to a super class |
void |
addType(java.lang.String name,
java.lang.String type)
Add a type to Module objects |
void |
addUserType(java.lang.String name,
java.lang.String type)
Add a type to Module, NameSpace, Function, Method, ClassEntity objects |
void |
addVariable(Variable variable)
Add a Variable object corresponding to a local variable to Module, NameSpace, Function, Method, Expression objects |
ScopeManager |
findVariableType(java.lang.String nameToBeFound,
java.lang.StringBuffer typeToBeFound,
Expression expr)
Look for the variable declaration whose name is "nameToBeFound" and return the ScopeManager in which it is defined (if found), filling "typeToBeFound" with the variable type. |
Method |
getCurrentMethod(java.lang.String methodName,
java.util.Vector parameters)
|
Variable |
getField(java.lang.String fieldName)
|
java.util.Vector |
getFields()
|
java.lang.String |
getFile()
|
java.util.Vector |
getGeneralizations()
|
java.util.Vector |
getMethods()
|
java.lang.String |
getName()
|
java.util.Vector |
getNewGeneralizations()
|
ScopeManager |
getParent()
return null |
boolean |
isAsubclassOf(java.lang.String name)
|
void |
print(java.lang.String indentation)
Print all information in a LimitedClassEntity objects |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LimitedClassEntity(java.lang.String name, java.lang.String file)
name
- Name of the C++ classfile
- Definintion fileMethod Detail |
public java.lang.String getName()
getName
in interface ScopeManager
public java.lang.String getFile()
public java.util.Vector getFields()
public java.util.Vector getMethods()
public Variable getField(java.lang.String fieldName)
public Method getCurrentMethod(java.lang.String methodName, java.util.Vector parameters)
getCurrentMethod
in interface ScopeManager
public java.util.Vector getGeneralizations()
public java.util.Vector getNewGeneralizations()
public ScopeManager getParent()
getParent
in interface ScopeManager
public boolean isAsubclassOf(java.lang.String name)
public void addEnumerator(Enumerator en)
addEnumerator
in interface ScopeManager
public void addNameSpace(NameSpace namespace)
ScopeManager
addNameSpace
in interface ScopeManager
public void addExpression(Expression expression, ScopeManager wrapper)
ScopeManager
addExpression
in interface ScopeManager
public void addClass(ClassEntity cl)
ScopeManager
addClass
in interface ScopeManager
public void addFunction(Function function)
ScopeManager
addFunction
in interface ScopeManager
public void addMethod(Method method)
addMethod
in interface ScopeManager
public void addVariable(Variable variable)
ScopeManager
addVariable
in interface ScopeManager
public void addField(Variable field)
addField
in interface ScopeManager
public void addType(java.lang.String name, java.lang.String type)
ScopeManager
addType
in interface ScopeManager
public void addUserType(java.lang.String name, java.lang.String type)
ScopeManager
addUserType
in interface ScopeManager
public void addGeneralization(SuperClass superClass)
addGeneralization
in interface ScopeManager
public void addNewGeneralization(LimitedClassEntity superClass)
public void addExternalMethod(Method method)
ScopeManager
addExternalMethod
in interface ScopeManager
public void addExternalField(Variable variable)
ScopeManager
addExternalField
in interface ScopeManager
public void addFriendFunction(Function f)
addFriendFunction
in interface ScopeManager
public void addFriendMethod(Method m)
addFriendMethod
in interface ScopeManager
public void addFriendClass(Variable v)
addFriendClass
in interface ScopeManager
public void addClassHeaderFile(java.lang.String className, java.lang.String headerFileName)
ScopeManager
addClassHeaderFile
in interface ScopeManager
public void print(java.lang.String indentation)
print
in interface ScopeManager
indentation
- String containing blank characters to use as
indentationpublic ScopeManager findVariableType(java.lang.String nameToBeFound, java.lang.StringBuffer typeToBeFound, Expression expr)
findVariableType
in interface ScopeManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |