code: protected void putGlobaToArray(Context ctx)
  	{
  		Map<String, Object> globalVar = ctx.globalVar;
  		if (globalVar == null)
  		{
  			for (int i = 0; i < this.tempVarStartIndex; i++)
  			{
  				ctx.vars[i] = ctx.NOT_EXIST_OBJECT;
  			}
  			return;
  		}
  
  		for (Entry<String, Integer> entry : globalIndexMap.entrySet())
  		{
  			String key = entry.getKey();
  			int index = entry.getValue();
  			if (globalVar.containsKey(key))
  			{
  				ctx.vars[index] = globalVar.get(key);
  			}
  			else
  			{
  				// 不存在
  				ctx.vars[index] = ctx.NOT_EXIST_OBJECT;
  			}
  		}
  	}
docs: 将模板全局变量转为数组
  
  @param ctx