|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectentities.Variable
The Variable class represents the information regarding a generic variable declaration.
Field Summary | |
static int |
FIELD
|
static int |
GLOBAL
|
static int |
LOCAL
|
static java.lang.String |
PRIVATE
|
static java.lang.String |
PROTECTED
|
static java.lang.String |
PUBLIC
|
Constructor Summary | |
Variable(ScopeManager parentScope,
java.lang.String name,
java.lang.String file,
int position,
boolean staticFlag,
int depth,
java.lang.String type)
Construct a new Variable (type normal) |
|
Variable(ScopeManager parentScope,
java.lang.String name,
java.lang.String file,
int position,
boolean staticFlag,
int depth,
java.lang.String accessType,
java.lang.String type)
Construct a new Variable (type field) |
Method Summary | |
void |
addContainedObjectType(java.lang.String type)
Executed after container analysis has been run, it adds the type of a contained object to the list of types contained inside the container associated with the current variable |
static void |
createTable(java.sql.Connection dbConnection)
|
static void |
delete(java.sql.Connection dbConnection,
int id)
|
java.lang.String |
getAccessType()
|
java.lang.String |
getClassName()
|
java.util.HashSet |
getContainedObjectTypes()
|
java.lang.String |
getFile()
|
java.lang.String |
getName()
|
ScopeManager |
getParent()
|
int |
getPosition()
|
int |
getScope()
|
java.lang.String |
getType()
|
void |
insert(java.sql.Connection dbConnection,
int sourceId,
int sourceType)
|
boolean |
isConst()
|
boolean |
isStatic()
|
void |
print(java.lang.String indentation)
Print all information in a Variable object |
void |
setClassName(java.lang.String className)
Set the name of the class in which the variable is declared |
void |
setParentScope(ScopeManager parent)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int GLOBAL
public static final int FIELD
public static final int LOCAL
public static final java.lang.String PRIVATE
public static final java.lang.String PROTECTED
public static final java.lang.String PUBLIC
Constructor Detail |
public Variable(ScopeManager parentScope, java.lang.String name, java.lang.String file, int position, boolean staticFlag, int depth, java.lang.String accessType, java.lang.String type)
parentScope
- Parent entity objectname
- Name of the variablefile
- Name of the file containing the variableposition
- Position of the variable in the filestaticFlag
- Flag that says if a variable is staticaccessType
- Type of accesstype
- Type of the variablepublic Variable(ScopeManager parentScope, java.lang.String name, java.lang.String file, int position, boolean staticFlag, int depth, java.lang.String type)
parentScope
- Parent entity objectname
- Name of the variablefile
- Name of the file containing the variableposition
- Position of the variable in the filestaticFlag
- Flag that says if a variable is statictype
- Type of the variableMethod Detail |
public java.lang.String getName()
public java.lang.String getFile()
public int getPosition()
public java.lang.String getClassName()
public java.lang.String getAccessType()
public java.lang.String getType()
public ScopeManager getParent()
public int getScope()
public java.util.HashSet getContainedObjectTypes()
public boolean isConst()
public boolean isStatic()
public void setClassName(java.lang.String className)
public void addContainedObjectType(java.lang.String type)
public void print(java.lang.String indentation)
public void setParentScope(ScopeManager parent)
parent
- represents the scope inside which the variable is
declaredpublic static void delete(java.sql.Connection dbConnection, int id) throws java.sql.SQLException
java.sql.SQLException
public static void createTable(java.sql.Connection dbConnection) throws java.sql.SQLException
java.sql.SQLException
public void insert(java.sql.Connection dbConnection, int sourceId, int sourceType) throws java.sql.SQLException
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |