Beispiel #1
0
  private void setContextToMacroLocalContextIfVariableExistsInParamaterList() {
    AttributeRef attributeRef = target.getAttributeRef();

    if (attributeRef != null) {
      String variableToSet = attributeRef.getVariableName();

      if (macro != null && macro.getParameters().contains(variableToSet)) {
        context = macro.getLocalContext();
      } else if (target.isNamespaceRef()) {
        throw new RuntimeException("Setting namespaces not implemented.");
      }
    }
  }