net.sf.jga.fn.property

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 » Development » jga Generic Algorithms » net.sf.jga.fn.property 
net.sf.jga.fn.property
Provides Functors and Predicates that operate on Java Objects that observe the bean standard naming convention. This is the home for functors that use reflection in construction and/or evaluation.

In previous versions, the constructors used in this package created type-unsafe functors. This was due to an incomplete understanding on my part of the implications of parameterizing the Class class. It's somewhat more obvious to me know how clever this is: it allows the compiler to check that the class given to a method is in fact the same class with which the functor is parameterized. The previous constructors did not take the class of the argument, or they used unparameterized classes as arguments: they typically performed some reflection on the first argument passed to fn(), lazily loading the Method or Constructor on the first call.

In this version, those constructors are deprecated. They are likely to disappear in a future version (unless they prove necessary to the success of some of the project goals).

Java Source File NameTypeComment
ArrayBinary.javaClass Binary Functor that returns its arguments in a two element array.

Copyright © 2004-2005 David A.

ArrayUnary.javaClass Unary Functor that returns its arguments in a one element array.

Copyright © 2004-2005 David A.

Cast.javaClass UnaryFunctor that returns its argument, cast to the given type.
CompareProperty.javaClass Unary Predicate that compares the value of the named property to the given value.
Construct.javaClass Unary Functor that constructs an object of the given class.
ConstructDefault.javaClass Generator that constructs an object of the given class using its default constructor.

Copyright © 2004-2005 David A.

ConstructUnary.javaClass Unary Functor that constructs an object of the given class via a one-argument constructor.

Copyright © 2003-2005 David A.

GetField.javaClass Unary Functor that returns the value of the named field for the argument. The field name and type are set at construction.

Copyright © 2002-2005 David A.

GetProperty.javaClass Unary Functor that returns the value of the named property for the argument. The property name and type are set at construction.

Copyright © 2002-2005 David A.

InstanceOf.javaClass Functor that returns true if the argument is an instance of given type.

NOTE: the generic parm T is not related to the class parameter.

InvokeMethod.javaClass Functor that invokes a method described at construction and returns the result or null if the result is void.
InvokeNoArgMethod.javaClass Functor that invokes a no-arg method named at construction and returns the result or null if the result is void.

Note that declaring the return type incorrectly can result in ClassCastExceptions being thrown when the functor is invoked: the compiler cannot check the return type of a reflectively loaded method.

Copyright © 2003-2005 David A.

PropertyFunctors.javaClass Static factory methods for the functors in the Property package.

Copyright © 2006 David A.

SetField.javaClass Binary Functor that sets the named field of the first argument to the value.
SetProperty.javaClass Binary Functor that sets the named property of the first argument to the value.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.