Hier werden die verschiedenen Moeglichen Werte erkannt und jenachdem wird mit der passenden
Methode weitergefahren <br />
EBNF:<br />
<code>string | number | dynamic | sharp;</code>

@return CFXD Element
@throws TemplateException
331054
private Expression checker(Data data) throws TemplateException {
	Expression expr = null;
	// String
	if ((expr = string(data)) != null) {
	    expr = subDynamic(data, expr, false, false);
	    data.mode = STATIC;// (expr instanceof Literal)?STATIC:DYNAMIC;// STATIC
	    return expr;
	}
	// Number
	if ((expr = number(data)) != null) {
	    expr = subDynamic(data, expr, false, false);
	    data.mode = STATIC;// (expr instanceof Literal)?STATIC:DYNAMIC;// STATIC
	    return expr;
	}
	// closure
	if ((expr = closure(data)) != null) {
	    data.mode = DYNAMIC;
	    return expr;
	}
	// lambda
	if ((expr = lambda(data)) != null) {
	    data.mode = DYNAMIC;
	    return expr;
	}

	// Dynamic
	if ((expr = dynamic(data)) != null) {
	    expr = newOp(data, expr);
	    expr = subDynamic(data, expr, true, false);
	    data.mode = DYNAMIC;
	    return expr;
	}
	// Sharp
	if ((expr = sharp(data)) != null) {
	    data.mode = DYNAMIC;
	    return expr;
	}
	// JSON
	if ((expr = json(data, JSON_ARRAY, '[', ']')) != null) {
	    expr = subDynamic(data, expr, false, false);
	    data.mode = DYNAMIC;
	    return expr;
	}
	if ((expr = json(data, JSON_STRUCT, '{', '}')) != null) {
	    expr = subDynamic(data, expr, false, false);
	    data.mode = DYNAMIC;
	    return expr;
	}
	// else Error
	throw new TemplateException(data.srcCode, "Syntax Error, Invalid Construct");
    }
559029
public static XStream createTemplateXStream() {
        XStream xstream = new XStream(new DomDriver("UTF-8"));
        xstream.setMode(XStream.NO_REFERENCES);
        xstream.registerConverter(new FontConverter());
        
        xstream.alias("template", ReportTemplate.class);
        xstream.useAttributeFor(ReportTemplate.class, "version");
        xstream.alias("band-element", BandElement.class);
        xstream.alias("column-band-element", ColumnBandElement.class);
        
        return xstream;
    }
698881
public function forTemplate()
    {
        $link = '';
        if ($this->LinkURL) {
            $link = $this->renderWith($this->RenderTemplates);
        }
        $this->extend('updateTemplate', $link);
        return $link;
    }
1006199
public function asVisibleString(): Primitive\VisibleString
    {
        if (!$this->_element instanceof Primitive\VisibleString) {
            throw new \UnexpectedValueException(
                $this->_generateExceptionMessage(Element::TYPE_VISIBLE_STRING));
        }
        return $this->_element;
    }
379721
public function asOctetString(): Primitive\OctetString
    {
        if (!$this->_element instanceof Primitive\OctetString) {
            throw new \UnexpectedValueException(
                $this->_generateExceptionMessage(Element::TYPE_OCTET_STRING));
        }
        return $this->_element;
    }
823318
public static String identifier(SourceCode cfml, boolean throwError, boolean allowColon) throws TemplateException {
	int start = cfml.getPos();

	if (!cfml.isCurrentBetween('a', 'z') && !cfml.isCurrent('_')) {
	    if (throwError) throw new TemplateException(cfml, "Invalid Identifier, the following character cannot be part of a identifier [" + cfml.getCurrent() + "]");
	    return null;
	}
	do {
	    cfml.next();
	    if (!(cfml.isCurrentBetween('a', 'z') || cfml.isCurrentBetween('0', '9') || cfml.isCurrent('_') || (allowColon && cfml.isCurrent(':')) || cfml.isCurrent('-'))) {
		break;
	    }
	}
	while (cfml.isValidIndex());
	return cfml.substring(start, cfml.getPos() - start);
    }
429088
public String toTemplateString() {
    String[] parametersName =
        this.parameters.stream().map(VariableInfo::getName).toArray(String[]::new);

    return this.getId() + "(" + String.join(", ", parametersName) + ")";
  }
793246
static function createAttributeLookupElement( $attributeValues = array(), $variablePlacement = false )
    {
        if ( is_numeric( $attributeValues ) )
            $attributeValues = array( eZTemplateNodeTool::createNumericElement( $attributeValues, $variablePlacement ) );
        else if ( !is_array( $attributeValues ) )
            $attributeValues = array( eZTemplateNodeTool::createStringElement( $attributeValues, $variablePlacement ) );
        return array( eZTemplate::TYPE_ATTRIBUTE,
                      $attributeValues, $variablePlacement );
    }
294427
public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException
  {

    // A bit of an ugly hack to get our context.
    ElemTemplateElement templElem =
      (ElemTemplateElement) xctxt.getNamespaceContext();
    StylesheetRoot ss = templElem.getStylesheetRoot();
    java.text.DecimalFormat formatter = null;
    java.text.DecimalFormatSymbols dfs = null;
    double num = getArg0().execute(xctxt).num();
    String patternStr = getArg1().execute(xctxt).str();

    // TODO: what should be the behavior here??
    if (patternStr.indexOf(0x00A4) > 0)
      ss.error(XSLTErrorResources.ER_CURRENCY_SIGN_ILLEGAL);  // currency sign not allowed

    // this third argument is not a locale name. It is the name of a
    // decimal-format declared in the stylesheet!(xsl:decimal-format
    try
    {
      Expression arg2Expr = getArg2();

      if (null != arg2Expr)
      {
        String dfName = arg2Expr.execute(xctxt).str();
        QName qname = new QName(dfName, xctxt.getNamespaceContext());

        dfs = ss.getDecimalFormatComposed(qname);

        if (null == dfs)
        {
          warn(xctxt, XSLTErrorResources.WG_NO_DECIMALFORMAT_DECLARATION,
               new Object[]{ dfName });  //"not found!!!

          //formatter = new java.text.DecimalFormat(patternStr);
        }
        else
        {

          //formatter = new java.text.DecimalFormat(patternStr, dfs);
          formatter = new java.text.DecimalFormat();

          formatter.setDecimalFormatSymbols(dfs);
          formatter.applyLocalizedPattern(patternStr);
        }
      }

      //else
      if (null == formatter)
      {

        // look for a possible default decimal-format
        dfs = ss.getDecimalFormatComposed(new QName(""));

        if (dfs != null)
        {
          formatter = new java.text.DecimalFormat();

          formatter.setDecimalFormatSymbols(dfs);
          formatter.applyLocalizedPattern(patternStr);
        }
        else
        {
          dfs = new java.text.DecimalFormatSymbols(java.util.Locale.US);

          dfs.setInfinity(Constants.ATTRVAL_INFINITY);
          dfs.setNaN(Constants.ATTRVAL_NAN);

          formatter = new java.text.DecimalFormat();

          formatter.setDecimalFormatSymbols(dfs);

          if (null != patternStr)
            formatter.applyLocalizedPattern(patternStr);
        }
      }

      return new XString(formatter.format(num));
    }
    catch (Exception iae)
    {
      templElem.error(XSLTErrorResources.ER_MALFORMED_FORMAT_STRING,
                      new Object[]{ patternStr });

      return XString.EMPTYSTRING;

      //throw new XSLProcessorException(iae);
    }
  }
789216
private function constDeclaration() {
    $node = new ConstantDeclarationNode();
    $name_node = new NameNode();
    $this->mustMatch(T_STRING, $name_node, NULL, TRUE);
    $node->addChild($name_node, 'name');
    if ($this->mustMatch('=', $node)) {
      $node->addChild($this->staticScalar(), 'value');
    }
    return $node;
  }
1280931
function (cfg, ctxt) {
        this.$BaseWidget.constructor.apply(this, arguments);

        /**
         * Creates a unique id to be used in the markup generated by the widget.
         * @return {String}
         */
        if (!cfg.id) {
            this._domId = this._createDynamicId();
        } else {
            this._domId = this._context.$getId(cfg.id);
        }

        /**
         * Element containing the template content
         * @protected
         * @type HTMLElement
         */
        this._subTplDiv = null;

        /**
         * Template context of the sub template.
         * @type aria.templates.TemplateCtxt
         */
        this.subTplCtxt = null;

        /**
         * Is true if a module controller instance has to be created by the template widget itself.
         * @protected
         * @type Boolean
         */
        this._needCreatingModuleCtrl = cfg.moduleCtrl && cfg.moduleCtrl.getData == null;

        /**
         * Configuration which will be sent to the template context. It is initialized with some properties in the
         * template widget constructor and completed later. It is set to null just after the template context has been
         * initialized, or if an error prevents the template from being loaded. So, if it is not null, we are still
         * waiting for the template to be loaded.
         * @protected
         * @type aria.templates.CfgBeans:InitTemplateCfg
         */
        this._tplcfg = {
            classpath : ariaCoreEnvironmentCustomizations.getTemplateCP(cfg.classpath),
            args : cfg.args,
            id : this._domId,
            moduleCtrl : cfg.moduleCtrl
        };
        // does the normalization
        this._checkCfgConsistency(cfg);

        var tplCtxt = new ariaTemplatesTemplateCtxt();
        this.subTplCtxt = tplCtxt;

        /**
         * Whether the context was already initialized or not.<br />
         * Not-initialized context means the the widget is still waiting for some dependencies to load, thus it's a
         * differed content
         * @type Boolean
         * @protected
         */
        this._initCtxDone = false;

        /**
         * Whether or not the widget is differed in its main section.<br />
         * If the context is not initialized when the markup is created this widget should be considered as differed to
         * avoid triggering $displayReady on the containg template
         * @type Boolean
         * @override
         */
        this.isDiffered = false;

        /**
         * CSS classes coming from the CSS templates associated to the template
         * @protected
         * @type String
         */
        this._cssClassNames = "";
    }
280374
protected function createNumberFormat()
    {
        return new ExpressionFunction(
            'numberFormat',
            function ($number, $decimals = 0, $dec_point = '.', $thousands_sep = ',') {
                return sprintf('( %1$s !== null ? number_format(%1$s, %2$s, %3$s, %4$s)) : null', $number, $decimals, $dec_point, $thousands_sep);
            },
            function ($arguments, $number, $decimals = 0, $dec_point = '.', $thousands_sep = ',') {
                if (null === $number) {
                    return null;
                }

                return number_format($number, $decimals, $dec_point, $thousands_sep);
            }
        );
    }
791242
public function asUniversalString(): Primitive\UniversalString
    {
        if (!$this->_element instanceof Primitive\UniversalString) {
            throw new \UnexpectedValueException(
                $this->_generateExceptionMessage(Element::TYPE_UNIVERSAL_STRING));
        }
        return $this->_element;
    }
544177
public function buildDefaultTemplate() {
		$customContainer = Html::el("div");
		
		$this->elements["input"]->setAttribute("style", "display: none");
		$id = $this->elements["input"]->getAttribute("id");
		$button = Html::el("button type='button' class='btn btn-primary mb-2'");
		$button->setAttribute("onclick", "document.getElementById('$id').click(); return false;");
		$button->setText("Nahrát soubor");
		
		$customContainer->addHtml($this->elements["input"]);
		$customContainer->addHtml($button);
		
		$globalProgress = $this->elements["globalProgress"]
			->setAttribute("class", "progress-bar")
			->setAttribute("style", "height: 20px");
		$progressContainer = Html::el("div class='progress mb-2'");
		$progressContainer->addHtml($globalProgress);
		$customContainer->addHtml($progressContainer);
		
		$container = $this->elements["container"];
		$container->setName("table");
		$container->setAttribute("class", "table");
		
		$thead = Html::el("thead class='thead-inverse'");
		$tr = Html::el("tr");
		$preview = Html::el("th style='width: 15%;'");
		$tr->addHtml($preview);
		$filename = Html::el("th")->setText("Soubor");
		$tr->addHtml($filename);
		$status = Html::el("th style='width: 20%'")->setText("Stav");
		$tr->addHtml($status);
		$actions = Html::el("th style='width: 50px'");
		$tr->addHtml($actions);
		$thead->addHtml($tr);
		
		$container->addHtml($thead);
		$customContainer->addHtml($container);
		
		return $customContainer;
	}
623004
function () {
                var e, t, c, v;

                c = $(this.combinator);

                e = $(/^(?:\d+\.\d+|\d+)%/) || $(/^(?:[.#]?|:*)(?:[\w-]|[^\x00-\x9f]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/) ||
                    $('*') || $('&') || $(this.attribute) || $(/^\([^)@]+\)/) || $(/^[\.#](?=@)/) || $(this.entities.variableCurly);

                if (! e) {
                    if ($('(') && (v = ($(this.entities.variableCurly) || $(this.entities.variable))) && $(')')) {
                        e = new(tree.Paren)(v);
                    }
                }

                if (e) { return new(tree.Element)(c, e, i) }
            }
179179
private String buildTemplates() {
		String[] templateString = new String[model.getTemplates().size()];
		for (int i = 0; i < (model.getTemplates().size()); i++) {
			String templateLoaded = loadTemplateFile(
					model.getTemplates().get(i));
			if (templateLoaded != null) {
				templateString[i] = templateLoaded;
			}
		}
		return implode(templateString, File.pathSeparator);
	}
58404
private Template getTemplate(String templateName) throws ParseException {
    try {
      return config.getTemplate(templateName, "UTF-8");
    } catch (ParseException e) {
      throw e;
    } catch (IOException e) {
      logger.error("Couldn't load template '{}',loader is {}", templateName,
          config.getTemplateLoader().getClass());
      throw Throwables.propagate(e);
    }
  }