Here are the examples of the java api lib.variables taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
16
Source : CallFrame.java
with MIT License
from inshua
with MIT License
from inshua
public VbVariable locateVbVariable(VarDecl varDecl, ModuleInstance moduleInstance) {
if (varDecl instanceof MeDecl) {
return VbVariable.ME;
}
if (varDecl.methodDecl == null || varDecl.isStatic) {
if (varDecl.module == this.module.getModuleDecl()) {
return this.module.variables.get(varDecl);
} else {
if (moduleInstance == null) {
String libName = varDecl.getLibrary().name.toUpperCase();
RuntimeLibrary lib = (RuntimeLibrary) libs.get(libName);
if (varDecl.module != null) {
moduleInstance = lib.modules.get(varDecl.module.name.toUpperCase());
}
if (moduleInstance == null) {
if (lib.variables.containsKey(varDecl)) {
return lib.variables.get(varDecl);
}
}
}
return moduleInstance.variables.get(varDecl);
}
} else {
if (varDecl.isImplicit) {
if (local.containsKey(varDecl) == false) {
local.put(varDecl, varDecl.createVar());
}
}
return local.get(varDecl);
}
}