IElementProcessor[] getAssociatedProcessors() { IElementProcessor[] p = this.associatedProcessors; if (p == null) { this.associatedProcessors = p = computeProcessors(); } return p; }
boolean hasAssociatedProcessors() { return getAssociatedProcessors().length > 0; }
if (values[1] != null) { ttag = (T) ttag.removeAttribute((String)values[0], (String)values[1]); } else if (values[0] instanceof AttributeName) { ttag = (T) ttag.removeAttribute((AttributeName)values[0]); } else { ttag = (T) ttag.removeAttribute((String)values[0]); for (int i = 0; i < this.replaceAttributeValuesSize; i++) { final Object[] values = this.replaceAttributeValues[i]; ttag = (T) ttag.replaceAttribute(attributeDefinitions, (AttributeName)values[0], (AttributeDefinition)values[1], (String)values[2], (String)values[3], (AttributeValueQuotes)values[4]); for (int i = 0; i < this.setAttributeValuesSize; i++) { final Object[] values = this.setAttributeValues[i]; ttag = (T) ttag.setAttribute(attributeDefinitions, (AttributeDefinition)values[0], (String)values[1], (String)values[2], (AttributeValueQuotes)values[3]);
public static IStandardExpression computeAttributeExpression( final ITemplateContext context, final IProcessableElementTag tag, final AttributeName attributeName, final String attributeValue) { if (!(tag instanceof AbstractProcessableElementTag)) { return parseAttributeExpression(context, attributeValue); } final AbstractProcessableElementTag processableElementTag = (AbstractProcessableElementTag)tag; final Attribute attribute = (Attribute) processableElementTag.getAttribute(attributeName); IStandardExpression expression = attribute.getCachedStandardExpression(); if (expression != null) { return expression; } expression = parseAttributeExpression(context, attributeValue); // If the expression has been correctly parsed AND it does not contain preprocessing marks (_), nor it is a FragmentExpression, cache it! if (expression != null && !(expression instanceof FragmentExpression) && attributeValue.indexOf('_') < 0) { attribute.setCachedStandardExpression(expression); } return expression; }
private void recompute(final AbstractProcessableElementTag tag) { final IElementProcessor[] associatedProcessors = tag.getAssociatedProcessors();