Java Doc for InvokerHelper.java in  » Scripting » groovy-1.0 » org » codehaus » groovy » runtime » 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 » Scripting » groovy 1.0 » org.codehaus.groovy.runtime 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.codehaus.groovy.runtime.InvokerHelper

InvokerHelper
public class InvokerHelper (Code)
A static helper class to make bytecode generation easier and act as a facade over the Invoker
author:
   James Strachan
version:
   $Revision: 4294 $


Field Summary
final public static  Object[]EMPTY_ARGS
    


Method Summary
public static  IteratorasIterator(Object o)
    
public static  ListasList(Object value)
    
public static  voidassertFailed(Object expression, Object message)
    
public static  ObjectbitNegate(Object value)
    
public static  ListcreateList(Object[] values)
    
public static  MapcreateMap(Object[] values)
    
public static  ListcreateRange(Object from, Object to, boolean inclusive)
    
public static  ScriptcreateScript(Class scriptClass, Binding context)
    
public static  TuplecreateTuple(Object[] array)
    
public static  MatcherfindRegex(Object left, Object right)
     Find the right hand regex within the left hand string and return a matcher.
protected static  Stringformat(Object arguments, boolean verbose)
    
public static  ObjectgetAttribute(Object object, String attribute)
    
public static  ObjectgetGroovyObjectProperty(GroovyObject object, String property)
    
public static  InvokergetInstance()
    
public static  MetaClassgetMetaClass(Object object)
    
public static  ClosuregetMethodPointer(Object object, String methodName)
    
public static  ObjectgetProperty(Object object, String property)
    
public static  ObjectgetPropertySafe(Object object, String property)
    
public static  StringgetVersion()
    
public static  Stringinspect(Object self)
    
public static  ObjectinvokeClosure(Object closure, Object arguments)
    
public static  ObjectinvokeConstructorOf(Class type, Object arguments)
    
public static  ObjectinvokeConstructorOf(String klass, Object arguments)
    
public static  ObjectinvokeMethod(Object object, String methodName, Object arguments)
    
public static  ObjectinvokeMethodSafe(Object object, String methodName, Object arguments)
    
public static  ObjectinvokeNoArgumentsConstructorOf(Class type)
    
public static  ObjectinvokeNoArgumentsMethod(Object object, String methodName)
    
public static  ObjectinvokeStaticMethod(Class type, String methodName, Object arguments)
    
public static  ObjectinvokeStaticMethod(String klass, String methodName, Object arguments)
    
public static  ObjectinvokeStaticNoArgumentsMethod(Class type, String methodName)
    
public static  ObjectinvokeSuperMethod(Object object, String methodName, Object arguments)
    
public static  booleanmatchRegex(Object left, Object right)
     Find the right hand regex within the left hand string and return a matcher.
public static  Objectnegate(Object value)
    
public static  voidremoveClass(Class clazz)
    
public static  ObjectrunScript(Class scriptClass, String[] args)
    
public static  voidsetAttribute(Object object, String attribute, Object newValue)
    
public static  voidsetGroovyObjectProperty(Object newValue, GroovyObject object, String property)
     This is so we don't have to reorder the stack when we call this method.
public static  voidsetProperties(Object object, Map map)
    
public static  voidsetProperty(Object object, String property, Object newValue)
    
public static  voidsetProperty2(Object newValue, Object object, String property)
     This is so we don't have to reorder the stack when we call this method.
public static  voidsetPropertySafe2(Object newValue, Object object, String property)
     This is so we don't have to reorder the stack when we call this method.
public static  SpreadMapspreadMap(Object value)
    
public static  StringtoArrayString(Object[] arguments)
     A helper method to return the string representation of an arrray of objects with brace boundaries "{" and "}".
public static  StringtoListString(Collection arg)
     A helper method to return the string representation of a list with bracket boundaries "[" and "]".
public static  StringtoMapString(Map arg)
     A helper method to return the string representation of a map with bracket boundaries "[" and "]".
public static  StringtoString(Object arguments)
    
public static  StringtoTypeString(Object[] arguments)
    
public static  voidwrite(Writer out, Object object)
    

Field Detail
EMPTY_ARGS
final public static Object[] EMPTY_ARGS(Code)





Method Detail
asIterator
public static Iterator asIterator(Object o)(Code)



asList
public static List asList(Object value)(Code)



assertFailed
public static void assertFailed(Object expression, Object message)(Code)



bitNegate
public static Object bitNegate(Object value)(Code)



createList
public static List createList(Object[] values)(Code)



createMap
public static Map createMap(Object[] values)(Code)



createRange
public static List createRange(Object from, Object to, boolean inclusive)(Code)



createScript
public static Script createScript(Class scriptClass, Binding context)(Code)



createTuple
public static Tuple createTuple(Object[] array)(Code)



findRegex
public static Matcher findRegex(Object left, Object right)(Code)
Find the right hand regex within the left hand string and return a matcher.
Parameters:
  left - string to compare
Parameters:
  right - regular expression to compare the string to



format
protected static String format(Object arguments, boolean verbose)(Code)



getAttribute
public static Object getAttribute(Object object, String attribute)(Code)



getGroovyObjectProperty
public static Object getGroovyObjectProperty(GroovyObject object, String property)(Code)



getInstance
public static Invoker getInstance()(Code)



getMetaClass
public static MetaClass getMetaClass(Object object)(Code)



getMethodPointer
public static Closure getMethodPointer(Object object, String methodName)(Code)
Returns the method pointer for the given object name



getProperty
public static Object getProperty(Object object, String property)(Code)



getPropertySafe
public static Object getPropertySafe(Object object, String property)(Code)



getVersion
public static String getVersion()(Code)



inspect
public static String inspect(Object self)(Code)



invokeClosure
public static Object invokeClosure(Object closure, Object arguments)(Code)



invokeConstructorOf
public static Object invokeConstructorOf(Class type, Object arguments)(Code)



invokeConstructorOf
public static Object invokeConstructorOf(String klass, Object arguments) throws ClassNotFoundException(Code)



invokeMethod
public static Object invokeMethod(Object object, String methodName, Object arguments)(Code)



invokeMethodSafe
public static Object invokeMethodSafe(Object object, String methodName, Object arguments)(Code)



invokeNoArgumentsConstructorOf
public static Object invokeNoArgumentsConstructorOf(Class type)(Code)



invokeNoArgumentsMethod
public static Object invokeNoArgumentsMethod(Object object, String methodName)(Code)



invokeStaticMethod
public static Object invokeStaticMethod(Class type, String methodName, Object arguments)(Code)



invokeStaticMethod
public static Object invokeStaticMethod(String klass, String methodName, Object arguments) throws ClassNotFoundException(Code)



invokeStaticNoArgumentsMethod
public static Object invokeStaticNoArgumentsMethod(Class type, String methodName)(Code)



invokeSuperMethod
public static Object invokeSuperMethod(Object object, String methodName, Object arguments)(Code)



matchRegex
public static boolean matchRegex(Object left, Object right)(Code)
Find the right hand regex within the left hand string and return a matcher.
Parameters:
  left - string to compare
Parameters:
  right - regular expression to compare the string to



negate
public static Object negate(Object value)(Code)



removeClass
public static void removeClass(Class clazz)(Code)



runScript
public static Object runScript(Class scriptClass, String[] args)(Code)



setAttribute
public static void setAttribute(Object object, String attribute, Object newValue)(Code)



setGroovyObjectProperty
public static void setGroovyObjectProperty(Object newValue, GroovyObject object, String property)(Code)
This is so we don't have to reorder the stack when we call this method. At some point a better name might be in order.



setProperties
public static void setProperties(Object object, Map map)(Code)
Sets the properties on the given object
Parameters:
  object -
Parameters:
  map -



setProperty
public static void setProperty(Object object, String property, Object newValue)(Code)



setProperty2
public static void setProperty2(Object newValue, Object object, String property)(Code)
This is so we don't have to reorder the stack when we call this method. At some point a better name might be in order.



setPropertySafe2
public static void setPropertySafe2(Object newValue, Object object, String property)(Code)
This is so we don't have to reorder the stack when we call this method. At some point a better name might be in order.



spreadMap
public static SpreadMap spreadMap(Object value)(Code)



toArrayString
public static String toArrayString(Object[] arguments)(Code)
A helper method to return the string representation of an arrray of objects with brace boundaries "{" and "}".



toListString
public static String toListString(Collection arg)(Code)
A helper method to return the string representation of a list with bracket boundaries "[" and "]".



toMapString
public static String toMapString(Map arg)(Code)
A helper method to return the string representation of a map with bracket boundaries "[" and "]".



toString
public static String toString(Object arguments)(Code)



toTypeString
public static String toTypeString(Object[] arguments)(Code)
A helper method to format the arguments types as a comma-separated list



write
public static void write(Writer out, Object object) throws IOException(Code)
Writes the given object to the given stream



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.