velocity-dev@jakarta.apache.org
[Top] [All Lists]

[jira] Commented: (VELOCITY-549) Allow directives to detect whether lite

Subject: [jira] Commented: (VELOCITY-549) Allow directives to detect whether literals are constant
From: "Adam Heath (JIRA)"
Date: Mon, 14 May 2007 12:34:16 -0700 PDT
    [ 
https://issues.apache.org/jira/browse/VELOCITY-549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12495762
 ] 

Adam Heath commented on VELOCITY-549:
-------------------------------------

If a directive implementation sees it's parameters are constant, it could 
evaluate them at initialization time, and substitute a more efficient version 
for evaluation at runtime.

> Allow directives to detect whether literals are constant
> --------------------------------------------------------
>
>                 Key: VELOCITY-549
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-549
>             Project: Velocity
>          Issue Type: New Feature
>          Components: Engine
>    Affects Versions: 1.5
>            Reporter: Adam Heath
>         Attachments: feature_ASTStringLiteral-expose-interpolate.patch
>
>
> Add isConstant() method to ASTStringLiteral, which exposes interpolate, so 
> that calling code can detect constant string literals.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xxxxxxxxxxxxxxxxxxx
For additional commands, e-mail: dev-help@xxxxxxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>