Java Doc for PromotionOffer.java in  » XML » XPath-Saxon » net » sf » saxon » expr » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » XML » XPath Saxon » net.sf.saxon.expr 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.sf.saxon.expr.PromotionOffer

PromotionOffer
public class PromotionOffer (Code)
PromotionOffer is an object used transiently during compilation of an expression. It contains information passed by a containing expression to its subexpressions, when looking for subexpressions that can be promoted to a higher level because they are not dependent on the context established by the containing expression. The object is also used to pass back return information when the promotion actually takes place.


Field Summary
final public static  intFOCUS_INDEPENDENT
     FOCUS_INDEPENDENT requests promotion of all non-trivial subexpressions that don't depend on the focus.
final public static  intINLINE_VARIABLE_REFERENCES
     Inline variable references causes all references to a variable V to be replaced by the expression E.
final public static  intRANGE_INDEPENDENT
     RANGE_INDEPENDENT requests promotion of all non-trivial subexpressions that don't depend on a specified range variable.
final public static  intREPLACE_CURRENT
     REPLACE_CURRENT causes calls to the XSLT current() function to be replaced by reference to a variable.
final public static  intUNORDERED
     UNORDERED indicates that the containing expression does not require the results to be delivered in any particular order.
public  booleanaccepted
    
public  intaction
    
public  Binding[]bindingList
     In the case of RANGE_INDEPENDENT and WHERE_CLAUSE, "binding" identifies the range variables whose dependencies we are looking for.
public  ExpressioncontainingExpression
     When a promotion offer is made, containingExpression identifies the level to which the promotion should occur.
public  booleanmustEliminateDuplicates
     In the case of UNORDERED, "mustEliminateDuplicates" is a boolean that is set to true if the nodes can be delivered in any order so long as there are no duplicates (for example, as required by the count() function).
public  booleanpromoteDocumentDependent
     In the case of FOCUS_INDEPENDENT, "promoteDocumentDependent" is a boolean that, when set to true, indicates that it is safe to promote a subexpression that depends on the context document but not on other aspects of the focus.
public  booleanpromoteXSLTFunctions
     In the case of FOCUS_INDEPENDENT, "promoteXSLTFunctions" is a boolean that, when set to true, indicates that it is safe to promote XSLT functions such as current().

Constructor Summary
public  PromotionOffer(Optimizer optimizer)
    

Method Summary
public  Expressionaccept(Expression child)
     Method to test whether a subexpression qualifies for promotion, and if so, to accept the promotion. if promotion was done, returns the expression that should be used in placeof the child expression.
public  OptimizergetOptimizer()
    

Field Detail
FOCUS_INDEPENDENT
final public static int FOCUS_INDEPENDENT(Code)
FOCUS_INDEPENDENT requests promotion of all non-trivial subexpressions that don't depend on the focus. This is typically used to extract subexpressions from a filter predicate. The offer is optional - each subexpression can decide whether it's worth the trouble of promoting itself. The offer is normally passed on to subexpressions, except subexpressions that are evaluated with a different focus



INLINE_VARIABLE_REFERENCES
final public static int INLINE_VARIABLE_REFERENCES(Code)
Inline variable references causes all references to a variable V to be replaced by the expression E. The variable is supplied in the "binding" property; the replacement expression in the containingExpression property. A special case is where the replacement expression is a ContextItemExpression; in this case the offer is not passed on to subexpressions where the context is different.



RANGE_INDEPENDENT
final public static int RANGE_INDEPENDENT(Code)
RANGE_INDEPENDENT requests promotion of all non-trivial subexpressions that don't depend on a specified range variable. This is typically used to extract subexpressions from the action of a for expression or the condition of a some/every quantified expression. The offer is optional - each subexpression can decide whether it's worth the trouble of promoting itself. The offer is normally passed on to subexpressions, except subexpressions that are evaluated with a different focus or a different range variable, because these may have other dependencies that prevent their promotion.



REPLACE_CURRENT
final public static int REPLACE_CURRENT(Code)
REPLACE_CURRENT causes calls to the XSLT current() function to be replaced by reference to a variable. The variable binding is the single member of the array bindingList



UNORDERED
final public static int UNORDERED(Code)
UNORDERED indicates that the containing expression does not require the results to be delivered in any particular order. The boolean mustEliminateDuplicates is set if duplicate items in the result are not allowed.



accepted
public boolean accepted(Code)
Flag that is set if the offer has been accepted, that is, if the expression has changed



action
public int action(Code)
action is one of the possible promotion actions, FOCUS_INDEPENDENT, RANGE_INDEPENDENT, INLINE_VARIABLE_REFERENCES, ANY_ORDER, ANY_ORDER_UNIQUE



bindingList
public Binding[] bindingList(Code)
In the case of RANGE_INDEPENDENT and WHERE_CLAUSE, "binding" identifies the range variables whose dependencies we are looking for. For INLINE_VARIABLE_REFERENCES it is a single Binding that we are aiming to inline



containingExpression
public Expression containingExpression(Code)
When a promotion offer is made, containingExpression identifies the level to which the promotion should occur. When a subexpression is promoted, an expression of the form let $VAR := SUB return ORIG is created, and this replaces the original containingExpression within the PromotionOffer.



mustEliminateDuplicates
public boolean mustEliminateDuplicates(Code)
In the case of UNORDERED, "mustEliminateDuplicates" is a boolean that is set to true if the nodes can be delivered in any order so long as there are no duplicates (for example, as required by the count() function). If this boolean is false, the nodes can be delivered in any order and duplicates are allowed (for example, as required by the boolean() function).



promoteDocumentDependent
public boolean promoteDocumentDependent(Code)
In the case of FOCUS_INDEPENDENT, "promoteDocumentDependent" is a boolean that, when set to true, indicates that it is safe to promote a subexpression that depends on the context document but not on other aspects of the focus. This is the case, for example, in a filter expression when it is known that all the nodes selected by the expression will be in the same document - as happens when the filter is applied to a path expression. This allows subexpressions such as key() to be promoted



promoteXSLTFunctions
public boolean promoteXSLTFunctions(Code)
In the case of FOCUS_INDEPENDENT, "promoteXSLTFunctions" is a boolean that, when set to true, indicates that it is safe to promote XSLT functions such as current(). This flag is set when rewriting XPath expressions and is unset when rewriting XSLT templates.




Constructor Detail
PromotionOffer
public PromotionOffer(Optimizer optimizer)(Code)
Create a PromotionOffer for use with a particular Optimizer




Method Detail
accept
public Expression accept(Expression child) throws XPathException(Code)
Method to test whether a subexpression qualifies for promotion, and if so, to accept the promotion. if promotion was done, returns the expression that should be used in placeof the child expression. If no promotion was done, returns null.



getOptimizer
public Optimizer getOptimizer()(Code)
Get the optimizer in use



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.