1 11 package org.eclipse.jdt.internal.core.eval; 12 13 import org.eclipse.jdt.core.eval.IGlobalVariable; 14 import org.eclipse.jdt.internal.eval.GlobalVariable; 15 16 19 class GlobalVariableWrapper implements IGlobalVariable { 20 GlobalVariable variable; 21 24 GlobalVariableWrapper(GlobalVariable variable) { 25 this.variable = variable; 26 } 27 30 public String getInitializer() { 31 char[] initializer = this.variable.getInitializer(); 32 if (initializer != null) { 33 return new String (initializer); 34 } else { 35 return null; 36 } 37 } 38 41 public String getName() { 42 return new String (this.variable.getName()); 43 } 44 47 public String getTypeName() { 48 return new String (this.variable.getTypeName()); 49 } 50 } 51 | Popular Tags |