Java Doc for Expression.java in  » RSS-RDF » Jena-2.5.5 » com » hp » hpl » jena » graph » query » 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 » RSS RDF » Jena 2.5.5 » com.hp.hpl.jena.graph.query 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.hp.hpl.jena.graph.query.Expression

Expression
public interface Expression (Code)
Expression - the interface for expressions that is expected by Query for constraints. An Expression can be evaluated (given a name->value mapping); it can be prepared into a Valuator (given a name->index mapping); and it can be analysed into its components.

An Expression can be a variable, an application, or a literal value. If an access method (eg getName) is applied to an Expression for which it is not appropriate (eg an application), the result is unspecified; an implementation is free to throw an exception, deliver a null result, deliver a misleading value, whatever is convenient.

The nested class Util provides some expression utility methods, including a generic version of prepare. The nested abstract class Base and its sub-classes Literal, Variable, and Application provide a framework for developers to implement Expressions over.
author:
   kers


Inner Class :abstract public static class Base implements Expression
Inner Class :abstract public static class Constant extends Base
Inner Class :public static class Fixed extends Constant
Inner Class :abstract public static class Variable extends Base
Inner Class :abstract public static class Application extends Base
Inner Class :public static class Util
Inner Class :static class Valof implements VariableValues
Inner Class :public static class BoolConstant extends Base implements Expression,Valuator

Field Summary
public static  ExpressionFALSE
     An Expression which always evaluates to false.
public static  ExpressionTRUE
     An Expression which always evaluates to true.


Method Summary
public  intargCount()
     If this Expression is an application, answer the number of arguments that it has.
public  ExpressiongetArg(int i)
     If this Expression is an application, and 0 <= i < argCount(), answer the ith argument.
public  StringgetFun()
     If this Expression is an application, return the string identifying the function, which should be a URI.
public  StringgetName()
     If this Expression is a variable, answer a [non-null] String which is its name.
public  ObjectgetValue()
     If this Expression is a literal, answer the value of that literal.
public  booleanisApply()
     Answer true iff this Expression represents the application of some function [or operator] to some arguments [or operands].
public  booleanisConstant()
     Answer true iff this Expression represents a literal [Java object] value.
public  booleanisVariable()
     Answer true iff this Expression represents a variable.
public  Valuatorprepare(VariableIndexes vi)
    

Field Detail
FALSE
public static Expression FALSE(Code)
An Expression which always evaluates to false.



TRUE
public static Expression TRUE(Code)
An Expression which always evaluates to true.





Method Detail
argCount
public int argCount()(Code)
If this Expression is an application, answer the number of arguments that it has. Otherwise the behaviour is unspecified.



getArg
public Expression getArg(int i)(Code)
If this Expression is an application, and 0 <= i < argCount(), answer the ith argument. Otherwise the behaviour is unspecified.



getFun
public String getFun()(Code)
If this Expression is an application, return the string identifying the function, which should be a URI. Otherwise the behaviour is unspecified.



getName
public String getName()(Code)
If this Expression is a variable, answer a [non-null] String which is its name. Otherwise the behaviour is unspecified.



getValue
public Object getValue()(Code)
If this Expression is a literal, answer the value of that literal. Otherwise the behaviour is unspecified.



isApply
public boolean isApply()(Code)
Answer true iff this Expression represents the application of some function [or operator] to some arguments [or operands].



isConstant
public boolean isConstant()(Code)
Answer true iff this Expression represents a literal [Java object] value.



isVariable
public boolean isVariable()(Code)
Answer true iff this Expression represents a variable.



prepare
public Valuator prepare(VariableIndexes vi)(Code)
Answer a Valuator which, when run with a set of index-to-value bindings, evaluates this expression in the light of the given variable-to-index bindings [ie as though the variables were bound to the corresponding values]



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