public void addVariable(String variableName,Class type,Object initializationValue,boolean constant){
  addVariable(variableName,type.getName(),initializationValue,constant);
}

public void addVariable ( String variableName , Class type , Object initializationValue , boolean constant ) { addVariable ( variableName , type . getName ( ) , initializationValue , constant ) ; }
add variable that can be a constant .
