LocalVariable[] variables= jc.getLocalVariables(fType);
Variable[] localLariables= jc.getLocalVariables(fType); Variable[] fields= jc.getFields(fType); Variable[] variables= new Variable[localLariables.length + fields.length]; System.arraycopy(fields, 0, variables, 0, fields.length); System.arraycopy(localLariables, 0, variables, fields.length, localLariables.length);
	public void resolve(TemplateVariable variable, TemplateContext context) {		List params= variable.getVariableType().getParams();		if (params.size() == 0)			fType= fDefaultType;		else			fType= (String) params.get(0);				if (variable instanceof JavaVariable) {			JavaContext jc= (JavaContext) context;			JavaVariable jv= (JavaVariable) variable;			jv.setParamType(fType);	        LocalVariable[] variables= jc.getLocalVariables(fType);			if (variables.length > 0) {				jv.setChoices(variables);				jc.markAsUsed(jv.getDefaultValue());			} else {				super.resolve(variable, context);				return;			}			if (variables.length > 1)				variable.setUnambiguous(false);			else				variable.setUnambiguous(isUnambiguous(context));		} else			super.resolve(variable, context);	}