/** * 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; } /**
/** * @see org.eclipse.jdt.core.eval.IGlobalVariable#getInitializer */ public String getInitializer() { char[] initializer = this.variable.getInitializer(); if (initializer != null) { return new String(initializer); } else { return null; } } /**
/** * @see org.eclipse.jdt.core.eval.IGlobalVariable#getName */ public String getName() { return new String(this.variable.getName()); } /**
evaluationID = var.getName(); evaluationType = EvaluationResult.T_VARIABLE; int typeLength = var.getTypeName().length; if ((0 <= pbStart) && (pbEnd < typeLength)) { char[] initializer = var.getInitializer(); int initializerLength = initializer == null ? 0 : initializer.length; if ((var.initializerStart <= problem.getSourceStart()) && (problem.getSourceEnd() < var.initializerStart + var.name.length)) {
/** * @see org.eclipse.jdt.core.eval.IGlobalVariable#getTypeName */ @Override public String getTypeName() { return new String(this.variable.getTypeName()); } }
evaluationID = var.getName(); evaluationType = EvaluationResult.T_VARIABLE; int typeLength = var.getTypeName().length; if ((0 <= pbStart) && (pbEnd < typeLength)) { char[] initializer = var.getInitializer(); int initializerLength = initializer == null ? 0 : initializer.length; if ((var.initializerStart <= problem.getSourceStart()) && (problem.getSourceEnd() < var.initializerStart + var.name.length)) {
/** * @see org.eclipse.jdt.core.eval.IGlobalVariable#getTypeName */ public String getTypeName() { return new String(this.variable.getTypeName()); } }
evaluationID = var.getName(); evaluationType = EvaluationResult.T_VARIABLE; int typeLength = var.getTypeName().length; if ((0 <= pbStart) && (pbEnd < typeLength)) { char[] initializer = var.getInitializer(); int initializerLength = initializer == null ? 0 : initializer.length; if ((var.initializerStart <= problem.getSourceStart()) && (problem.getSourceEnd() < var.initializerStart + var.name.length)) {
/** * @see org.eclipse.jdt.core.eval.IGlobalVariable#getName */ public String getName() { return new String(this.variable.getName()); } /**
/** * @see org.eclipse.jdt.core.eval.IGlobalVariable#getInitializer */ public String getInitializer() { char[] initializer = this.variable.getInitializer(); if (initializer != null) { return new String(initializer); } else { return null; } } /**
/** * @see org.eclipse.jdt.core.eval.IGlobalVariable#getTypeName */ public String getTypeName() { return new String(this.variable.getTypeName()); } }
/** * 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; } /**
evaluationID = var.getName(); evaluationType = EvaluationResult.T_VARIABLE; int typeLength = var.getTypeName().length; if ((0 <= pbStart) && (pbEnd < typeLength)) { char[] initializer = var.getInitializer(); int initializerLength = initializer == null ? 0 : initializer.length; if ((var.initializerStart <= problem.getSourceStart()) && (problem.getSourceEnd() < var.initializerStart + var.name.length)) {
/** * @see org.eclipse.jdt.core.eval.IGlobalVariable#getName */ public String getName() { return new String(this.variable.getName()); } /**
/** * @see org.eclipse.jdt.core.eval.IGlobalVariable#getInitializer */ public String getInitializer() { char[] initializer = this.variable.getInitializer(); if (initializer != null) { return new String(initializer); } else { return null; } } /**
/** * @see org.eclipse.jdt.core.eval.IGlobalVariable#getTypeName */ public String getTypeName() { return new String(this.variable.getTypeName()); } }
/** * 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; } /**
evaluationID = var.getName(); evaluationType = EvaluationResult.T_VARIABLE; int typeLength = var.getTypeName().length; if ((0 <= pbStart) && (pbEnd < typeLength)) { char[] initializer = var.getInitializer(); int initializerLength = initializer == null ? 0 : initializer.length; if ((var.initializerStart <= problem.getSourceStart()) && (problem.getSourceEnd() < var.initializerStart + var.name.length)) {
/** * @see org.eclipse.jdt.core.eval.IGlobalVariable#getName */ @Override public String getName() { return new String(this.variable.getName()); } /**
/** * @see org.eclipse.jdt.core.eval.IGlobalVariable#getInitializer */ public String getInitializer() { char[] initializer = this.variable.getInitializer(); if (initializer != null) { return new String(initializer); } else { return null; } } /**