/** * Creates a new global variable with the given name, type and initializer. * If the variable is not initialized, the initializer can be null. * Note that this doesn't install it to this evaluation context's VM. * * @see GlobalVariable */ public GlobalVariable newVariable(char[] typeName, char[] name, char[] initializer) { GlobalVariable var = new GlobalVariable(typeName, name, initializer); if (this.variableCount >= this.variables.length) // assume variables is never empty System.arraycopy(this.variables, 0, this.variables = new GlobalVariable[this.variableCount * 2], 0, this.variableCount); this.variables[this.variableCount++] = var; this.varsChanged = true; return var; } /**
/** * Creates a new global variable with the given name, type and initializer. * If the variable is not initialized, the initializer can be null. * Note that this doesn't install it to this evaluation context's VM. * * @see GlobalVariable */ public GlobalVariable newVariable(char[] typeName, char[] name, char[] initializer) { GlobalVariable var = new GlobalVariable(typeName, name, initializer); if (this.variableCount >= this.variables.length) // assume variables is never empty System.arraycopy(this.variables, 0, this.variables = new GlobalVariable[this.variableCount * 2], 0, this.variableCount); this.variables[this.variableCount++] = var; this.varsChanged = true; return var; } /**
/** * Creates a new global variable with the given name, type and initializer. * If the variable is not initialized, the initializer can be null. * Note that this doesn't install it to this evaluation context's VM. * * @see GlobalVariable */ public GlobalVariable newVariable(char[] typeName, char[] name, char[] initializer) { GlobalVariable var = new GlobalVariable(typeName, name, initializer); if (this.variableCount >= this.variables.length) // assume variables is never empty System.arraycopy(this.variables, 0, this.variables = new GlobalVariable[this.variableCount * 2], 0, this.variableCount); this.variables[this.variableCount++] = var; this.varsChanged = true; return var; } /**
/** * Creates a new global variable with the given name, type and initializer. * If the variable is not initialized, the initializer can be null. * Note that this doesn't install it to this evaluation context's VM. * * @see GlobalVariable */ public GlobalVariable newVariable(char[] typeName, char[] name, char[] initializer) { GlobalVariable var = new GlobalVariable(typeName, name, initializer); if (this.variableCount >= this.variables.length) // assume variables is never empty System.arraycopy(this.variables, 0, this.variables = new GlobalVariable[this.variableCount * 2], 0, this.variableCount); this.variables[this.variableCount++] = var; this.varsChanged = true; return var; } /**
/** * Creates a new global variable with the given name, type and initializer. * If the variable is not initialized, the initializer can be null. * Note that this doesn't install it to this evaluation context's VM. * * @see GlobalVariable */ public GlobalVariable newVariable(char[] typeName, char[] name, char[] initializer) { GlobalVariable var = new GlobalVariable(typeName, name, initializer); if (this.variableCount >= this.variables.length) // assume variables is never empty System.arraycopy(this.variables, 0, this.variables = new GlobalVariable[this.variableCount * 2], 0, this.variableCount); this.variables[this.variableCount++] = var; this.varsChanged = true; return var; } /**
/** * Creates a new global variable with the given name, type and initializer. * If the variable is not initialized, the initializer can be null. * Note that this doesn't install it to this evaluation context's VM. * * @see GlobalVariable */ public GlobalVariable newVariable(char[] typeName, char[] name, char[] initializer) { GlobalVariable var = new GlobalVariable(typeName, name, initializer); if (this.variableCount >= this.variables.length) // assume variables is never empty System.arraycopy(this.variables, 0, this.variables = new GlobalVariable[this.variableCount * 2], 0, this.variableCount); this.variables[this.variableCount++] = var; this.varsChanged = true; return var; } /**