Java Doc for TraceExpression.java in  » XML » saxonb » net » sf » saxon » instruct » 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 » saxonb » net.sf.saxon.instruct 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


net.sf.saxon.instruct.Instruction
   net.sf.saxon.instruct.TraceWrapper
      net.sf.saxon.instruct.TraceExpression

TraceExpression
public class TraceExpression extends TraceWrapper implements InstructionInfo(Code)
A subclass of TraceWrapper used to trace expressions in XPath and XQuery. Unlike the TraceInstruction class, this class contains all information needed for tracing, rather than referencing a separate InstructionDetails object.



Constructor Summary
public  TraceExpression(Expression child)
     Create a trace expression that traces execution of a given child expression
Parameters:
  child - the expression to be traced.

Method Summary
public  intgetColumnNumber()
     Get the column number identifying the position of the instruction.
public  intgetConstructType()
     Get the construct type.
public  InstructionInfogetInstructionInfo()
     Get the InstructionInfo details about the construct.
public  intgetLineNumber()
    
public  intgetLineNumber(int locationId)
     Get the line number of the expression being traced.
public  NamespaceResolvergetNamespaceResolver()
    
public  intgetObjectNameCode()
     Get a name identifying the object of the expression, for example a function name, template name, variable name, key name, element name, etc.
public  IteratorgetProperties()
     Get an iterator over all the properties available.
public  ObjectgetProperty(String name)
    
public  StringgetSystemId()
    
public  StringgetSystemId(int locationId)
     Get the system identifier (that is the base URI) of the static context of the expression being traced.
public  voidsetColumnNumber(int column)
    
public  voidsetConstructType(int type)
     Set the type of construct.
public  voidsetLineNumber(int line)
    
public  voidsetNamespaceResolver(NamespaceResolver resolver)
     Set the namespace context for the instruction being traced.
public  voidsetObjectNameCode(int nameCode)
     Set a name identifying the object of the expression, for example a function name, template name, variable name, key name, element name, etc.
public  voidsetProperty(String name, Object value)
    
public  voidsetSystemId(String systemId)
    


Constructor Detail
TraceExpression
public TraceExpression(Expression child)(Code)
Create a trace expression that traces execution of a given child expression
Parameters:
  child - the expression to be traced. This will be available to the TraceListeneras the value of the "expression" property of the InstructionInfo.




Method Detail
getColumnNumber
public int getColumnNumber()(Code)
Get the column number identifying the position of the instruction. This method is provided to satisfy the SourceLocator interface. However, the column number is not maintained by Saxon, and the method always returns -1 -1



getConstructType
public int getConstructType()(Code)
Get the construct type. This will generally be a constant in class net.sf.saxon.trace.Location



getInstructionInfo
public InstructionInfo getInstructionInfo()(Code)
Get the InstructionInfo details about the construct. This is to satisfy the InstructionInfoProvider interface.



getLineNumber
public int getLineNumber()(Code)
Get the line number of the instruction within its module the line number



getLineNumber
public int getLineNumber(int locationId)(Code)
Get the line number of the expression being traced. This returns the same result as getLineNumber(), it is provided to satisfy the net.sf.saxon.event.LocationProvider interface.
Parameters:
  locationId - not used the line number of the expression within its module



getNamespaceResolver
public NamespaceResolver getNamespaceResolver()(Code)
Get the namespace resolver to supply the namespace context of the instruction that is being traced



getObjectNameCode
public int getObjectNameCode()(Code)
Get a name identifying the object of the expression, for example a function name, template name, variable name, key name, element name, etc. This is used only where the name is known statically.



getProperties
public Iterator getProperties()(Code)
Get an iterator over all the properties available. The values returned by the iterator will be of type String, and each string can be supplied as input to the getProperty() method to retrieve the value of the property.



getProperty
public Object getProperty(String name)(Code)
Get a named property of the instruction/expression



getSystemId
public String getSystemId()(Code)
Get the URI of the module containing the instruction the module's URI



getSystemId
public String getSystemId(int locationId)(Code)
Get the system identifier (that is the base URI) of the static context of the expression being traced. This returns the same result as getSystemId(), it is provided to satisfy the net.sf.saxon.event.LocationProvider interface.
Parameters:
  locationId - not used the URI of the module containing the expression



setColumnNumber
public void setColumnNumber(int column)(Code)
Set the column number of the expression being traced
Parameters:
  column -



setConstructType
public void setConstructType(int type)(Code)
Set the type of construct. This will generally be a constant in class net.sf.saxon.trace.Location



setLineNumber
public void setLineNumber(int line)(Code)
Set the line number of the expression being traced
Parameters:
  line -



setNamespaceResolver
public void setNamespaceResolver(NamespaceResolver resolver)(Code)
Set the namespace context for the instruction being traced. This is needed if the tracelistener wants to evaluate XPath expressions in the context of the current instruction



setObjectNameCode
public void setObjectNameCode(int nameCode)(Code)
Set a name identifying the object of the expression, for example a function name, template name, variable name, key name, element name, etc. This is used only where the name is known statically.



setProperty
public void setProperty(String name, Object value)(Code)
Set a named property of the instruction/expression



setSystemId
public void setSystemId(String systemId)(Code)
Set the URI of the module containing the instruction
Parameters:
  systemId - the module's URI



Fields inherited from net.sf.saxon.instruct.TraceWrapper
Expression child(Code)(Java Doc)

Methods inherited from net.sf.saxon.instruct.TraceWrapper
public int computeDependencies()(Code)(Java Doc)
final public boolean createsNewNodes()(Code)(Java Doc)
public void display(int level, NamePool pool, PrintStream out)(Code)(Java Doc)
public Item evaluateItem(XPathContext context) throws XPathException(Code)(Java Doc)
public int getCardinality()(Code)(Java Doc)
public int getDependencies()(Code)(Java Doc)
public int getInstructionNameCode()(Code)(Java Doc)
public ItemType getItemType(TypeHierarchy th)(Code)(Java Doc)
public SequenceIterator iterate(XPathContext context) throws XPathException(Code)(Java Doc)
public Iterator iterateSubExpressions()(Code)(Java Doc)
public Expression optimize(Optimizer opt, StaticContext env, ItemType contextItemType) throws XPathException(Code)(Java Doc)
public TailCall processLeavingTail(XPathContext context) throws XPathException(Code)(Java Doc)
public Expression promote(PromotionOffer offer) throws XPathException(Code)(Java Doc)
public Expression simplify(StaticContext env) throws XPathException(Code)(Java Doc)
public Expression typeCheck(StaticContext env, ItemType contextItemType) throws XPathException(Code)(Java Doc)

Methods inherited from net.sf.saxon.instruct.Instruction
public static void appendItem(Item it, SequenceReceiver out, int locationId) throws XPathException(Code)(Java Doc)
protected static ParameterSet assembleParams(XPathContext context, WithParam[] actualParams) throws XPathException(Code)(Java Doc)
protected static ParameterSet assembleTunnelParams(XPathContext context, WithParam[] actualParams) throws XPathException(Code)(Java Doc)
public int computeCardinality()(Code)(Java Doc)
public int computeSpecialProperties()(Code)(Java Doc)
public boolean createsNewNodes()(Code)(Java Doc)
protected static XPathException dynamicError(SourceLocator loc, XPathException error, XPathContext context)(Code)(Java Doc)
final public String evaluateAsString(XPathContext context) throws XPathException(Code)(Java Doc)
public Item evaluateItem(XPathContext context) throws XPathException(Code)(Java Doc)
public int getImplementationMethod()(Code)(Java Doc)
public InstructionInfo getInstructionInfo()(Code)(Java Doc)
public int getInstructionNameCode()(Code)(Java Doc)
public ItemType getItemType(TypeHierarchy th)(Code)(Java Doc)
public SourceLocator getSourceLocator()(Code)(Java Doc)
public boolean isXSLT(XPathContext context)(Code)(Java Doc)
public SequenceIterator iterate(XPathContext context) throws XPathException(Code)(Java Doc)
public void process(XPathContext context) throws XPathException(Code)(Java Doc)
abstract public TailCall processLeavingTail(XPathContext context) throws XPathException(Code)(Java Doc)
public Expression promote(PromotionOffer offer) throws XPathException(Code)(Java Doc)
protected void promoteInst(PromotionOffer offer) throws XPathException(Code)(Java Doc)
abstract public Expression simplify(StaticContext env) throws XPathException(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.