Java Doc for OgnlRuntime.java in  » Scripting » OGNL » ognl » 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 » OGNL » ognl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   ognl.OgnlRuntime

OgnlRuntime
abstract public class OgnlRuntime extends Object (Code)
This is an abstract class with static methods that define runtime caching information in OGNL.
author:
   Luke Blanshard (blanshlu@netscape.net)
author:
   Drew Davidson (drew@ognl.org)


Field Summary
public static  intINDEXED_PROPERTY_INT
    
public static  intINDEXED_PROPERTY_NONE
    
public static  intINDEXED_PROPERTY_OBJECT
    
final public static  StringNULL_STRING
    
final public static  Class[]NoArgumentTypes
    
final public static  Object[]NoArguments
    
final public static  ObjectNoConversionPossible
    
final public static  ObjectNotFound
    
final public static  ListNotFoundList
    
final public static  MapNotFoundMap
    


Method Summary
final public static  booleanareArgsCompatible(Object[] args, Class[] classes)
     Tells whether the given array of objects is compatible with the given array of classes---that is, whether the given array of objects can be passed as arguments to a method or constructor whose parameter types are the given array of classes.
public static  ObjectcallAppropriateMethod(OgnlContext context, Object source, Object target, String methodName, String propertyName, List methods, Object[] args)
    
final public static  ObjectcallConstructor(OgnlContext context, String className, Object[] args)
    
final public static  ObjectcallMethod(OgnlContext context, Object target, String methodName, String propertyName, Object[] args)
    
final public static  ObjectcallStaticMethod(OgnlContext context, String className, String methodName, Object[] args)
    
final public static  ClassclassForName(OgnlContext context, String className)
    
public static  MethodgetAppropriateMethod(OgnlContext context, Object source, Object target, String methodName, String propertyName, List methods, Object[] args, Object[] actualArgs)
     Gets the appropriate method to be called for the given target, method name and arguments. If successful this method will return the Method within the target that can be called and the converted arguments in actualArgs.
final public static  ClassgetArgClass(Object arg)
     Gets the class for a method argument that is appropriate for looking up methods by reflection, by looking for the standard primitive wrapper classes and exchanging for them their underlying primitive class objects.
public static  StringgetBaseName(Object o)
     Returns the base name (the class name without the package name prepended) of the object given.
public static  StringgetClassBaseName(Class c)
     Returns the base name (the class name without the package name prepended) of the class given.
public static  StringgetClassName(Object o, boolean fullyQualified)
    
public static  StringgetClassName(Class c, boolean fullyQualified)
    
public static  StringgetClassPackageName(Class c)
     Returns the package name of the class given.
final public static  ListgetConstructors(Class targetClass)
    
public static  ConstructorgetConvertedConstructorAndArgs(OgnlContext context, Object target, List constructors, Object[] args, Object[] newArgs)
    
public static  MethodgetConvertedMethodAndArgs(OgnlContext context, Object target, String propertyName, List methods, Object[] args, Object[] newArgs)
    
public static  ObjectgetConvertedType(OgnlContext context, Object target, Member member, String propertyName, Object value, Class type)
    
public static  booleangetConvertedTypes(OgnlContext context, Object target, Member member, String propertyName, Class[] parameterTypes, Object[] args, Object[] newArgs)
    
final public static  ListgetDeclaredMethods(Class targetClass, String propertyName, boolean findSets)
    
final public static  ElementsAccessorgetElementsAccessor(Class cls)
    
public static  EvaluationPoolgetEvaluationPool()
    
final public static  FieldgetField(Class inClass, String name)
    
final public static  ObjectgetFieldValue(OgnlContext context, Object target, String propertyName)
    
final public static  ObjectgetFieldValue(OgnlContext context, Object target, String propertyName, boolean checkAccessAndExistence)
    
final public static  MapgetFields(Class targetClass)
    
final public static  MethodgetGetMethod(OgnlContext context, Class targetClass, String propertyName)
    
final public static  ObjectgetIndexedProperty(OgnlContext context, Object source, String name, Object index)
    
final public static  intgetIndexedPropertyType(OgnlContext context, Class sourceClass, String name)
     Determines the index property type, if any.
final public static  MethodAccessorgetMethodAccessor(Class cls)
    
final public static  ObjectgetMethodValue(OgnlContext context, Object target, String propertyName)
    
final public static  ObjectgetMethodValue(OgnlContext context, Object target, String propertyName, boolean checkAccessAndExistence)
     If the checkAccessAndExistence flag is true this method will check to see if the method exists and if it is accessible according to the context's MemberAccess.
final public static  MapgetMethods(Class targetClass, boolean staticMethods)
    
final public static  ListgetMethods(Class targetClass, String name, boolean staticMethods)
    
final public static  StringgetModifierString(int modifiers)
    
final public static  NullHandlergetNullHandler(Class cls)
    
public static  ObjectArrayPoolgetObjectArrayPool()
    
public static  StringgetPackageName(Object o)
     Returns the package name of the object's class.
public static  Class[]getParameterTypes(Method m)
     Returns the parameter types of the given method.
public static  Class[]getParameterTypes(Constructor c)
     Returns the parameter types of the given method.
public static  PermissiongetPermission(Method method)
     Permission will be named "invoke..".
public static  StringgetPointerString(int num)
     Returns a "pointer" string in the usual format for these things - 0x.
public static  StringgetPointerString(Object o)
     Returns a "pointer" string in the usual format for these things - 0x for the object given.
public static  ObjectgetPrimitiveDefaultValue(Class forClass)
    
final public static  ObjectgetProperty(OgnlContext context, Object source, Object name)
    
final public static  PropertyAccessorgetPropertyAccessor(Class cls)
    
final public static  PropertyDescriptorgetPropertyDescriptor(Class targetClass, String propertyName)
     This method returns a PropertyDescriptor for the given class and property name using a Map lookup (using getPropertyDescriptorsMap()).
final public static  PropertyDescriptorgetPropertyDescriptorFromArray(Class targetClass, String name)
     Gets the property descriptor with the given name for the target class given.
final public static  MapgetPropertyDescriptors(Class targetClass)
    
final public static  PropertyDescriptor[]getPropertyDescriptorsArray(Class targetClass)
    
public static  SecurityManagergetSecurityManager()
     Gets the SecurityManager that OGNL uses to determine permissions for invoking methods.
final public static  MethodgetSetMethod(OgnlContext context, Class targetClass, String propertyName)
    
final public static  ObjectgetStaticField(OgnlContext context, String className, String fieldName)
    
public static  ClassgetTargetClass(Object o)
     Gets the "target" class of an object for looking up accessors that are registered on the target.
public static  StringgetUniqueDescriptor(Object object, boolean fullyQualified)
     Returns a unique descriptor string that includes the object's class and a unique integer identifier.
public static  StringgetUniqueDescriptor(Object object)
     Returns a unique descriptor string that includes the object's class' base name and a unique integer identifier.
final public static  booleanhasField(OgnlContext context, Object target, Class inClass, String propertyName)
    
final public static  booleanhasGetMethod(OgnlContext context, Object target, Class targetClass, String propertyName)
    
final public static  booleanhasGetProperty(OgnlContext context, Object target, Object oname)
    
final public static  booleanhasSetMethod(OgnlContext context, Object target, Class targetClass, String propertyName)
    
final public static  booleanhasSetProperty(OgnlContext context, Object target, Object oname)
    
public static  ObjectinvokeMethod(Object target, Method method, Object[] argsArray)
    
final public static  booleanisFieldAccessible(OgnlContext context, Object target, Class inClass, String propertyName)
    
final public static  booleanisFieldAccessible(OgnlContext context, Object target, Field field, String propertyName)
    
final public static  booleanisInstance(OgnlContext context, Object value, String className)
    
final public static  booleanisMethodAccessible(OgnlContext context, Object target, Method method, String propertyName)
    
final public static  booleanisMoreSpecific(Class[] classes1, Class[] classes2)
     Tells whether the first array of classes is more specific than the second.
final public static  booleanisTypeCompatible(Object object, Class c)
     Tells whether the given object is compatible with the given class ---that is, whether the given object can be passed as an argument to a method or constructor whose parameter type is the given class.
final public static  voidsetElementsAccessor(Class cls, ElementsAccessor accessor)
    
final public static  booleansetFieldValue(OgnlContext context, Object target, String propertyName, Object value)
    
final public static  voidsetIndexedProperty(OgnlContext context, Object source, String name, Object index, Object value)
    
final public static  voidsetMethodAccessor(Class cls, MethodAccessor accessor)
    
final public static  booleansetMethodValue(OgnlContext context, Object target, String propertyName, Object value)
    
final public static  booleansetMethodValue(OgnlContext context, Object target, String propertyName, Object value, boolean checkAccessAndExistence)
    
final public static  voidsetNullHandler(Class cls, NullHandler handler)
    
final public static  voidsetProperty(OgnlContext context, Object target, Object name, Object value)
    
final public static  voidsetPropertyAccessor(Class cls, PropertyAccessor accessor)
    
public static  voidsetSecurityManager(SecurityManager value)
     Sets the SecurityManager that OGNL uses to determine permissions for invoking methods.
public static  Object[]toArray(List list)
     Utility to convert a List into an Object[] array.

Field Detail
INDEXED_PROPERTY_INT
public static int INDEXED_PROPERTY_INT(Code)
JavaBeans IndexedProperty



INDEXED_PROPERTY_NONE
public static int INDEXED_PROPERTY_NONE(Code)
Not an indexed property



INDEXED_PROPERTY_OBJECT
public static int INDEXED_PROPERTY_OBJECT(Code)
OGNL ObjectIndexedProperty



NULL_STRING
final public static String NULL_STRING(Code)



NoArgumentTypes
final public static Class[] NoArgumentTypes(Code)



NoArguments
final public static Object[] NoArguments(Code)



NoConversionPossible
final public static Object NoConversionPossible(Code)
Token returned by TypeConverter for no conversion possible



NotFound
final public static Object NotFound(Code)



NotFoundList
final public static List NotFoundList(Code)



NotFoundMap
final public static Map NotFoundMap(Code)





Method Detail
areArgsCompatible
final public static boolean areArgsCompatible(Object[] args, Class[] classes)(Code)
Tells whether the given array of objects is compatible with the given array of classes---that is, whether the given array of objects can be passed as arguments to a method or constructor whose parameter types are the given array of classes.



callAppropriateMethod
public static Object callAppropriateMethod(OgnlContext context, Object source, Object target, String methodName, String propertyName, List methods, Object[] args) throws MethodFailedException(Code)



callConstructor
final public static Object callConstructor(OgnlContext context, String className, Object[] args) throws OgnlException(Code)



callMethod
final public static Object callMethod(OgnlContext context, Object target, String methodName, String propertyName, Object[] args) throws OgnlException, MethodFailedException(Code)



callStaticMethod
final public static Object callStaticMethod(OgnlContext context, String className, String methodName, Object[] args) throws OgnlException, MethodFailedException(Code)



classForName
final public static Class classForName(OgnlContext context, String className) throws ClassNotFoundException(Code)



getAppropriateMethod
public static Method getAppropriateMethod(OgnlContext context, Object source, Object target, String methodName, String propertyName, List methods, Object[] args, Object[] actualArgs)(Code)
Gets the appropriate method to be called for the given target, method name and arguments. If successful this method will return the Method within the target that can be called and the converted arguments in actualArgs. If unsuccessful this method will return null and the actualArgs will be empty.



getArgClass
final public static Class getArgClass(Object arg)(Code)
Gets the class for a method argument that is appropriate for looking up methods by reflection, by looking for the standard primitive wrapper classes and exchanging for them their underlying primitive class objects. Other classes are passed through unchanged.
Parameters:
  arg - an object that is being passed to a method the class to use to look up the method



getBaseName
public static String getBaseName(Object o)(Code)
Returns the base name (the class name without the package name prepended) of the object given.



getClassBaseName
public static String getClassBaseName(Class c)(Code)
Returns the base name (the class name without the package name prepended) of the class given.



getClassName
public static String getClassName(Object o, boolean fullyQualified)(Code)



getClassName
public static String getClassName(Class c, boolean fullyQualified)(Code)



getClassPackageName
public static String getClassPackageName(Class c)(Code)
Returns the package name of the class given.



getConstructors
final public static List getConstructors(Class targetClass)(Code)



getConvertedConstructorAndArgs
public static Constructor getConvertedConstructorAndArgs(OgnlContext context, Object target, List constructors, Object[] args, Object[] newArgs)(Code)



getConvertedMethodAndArgs
public static Method getConvertedMethodAndArgs(OgnlContext context, Object target, String propertyName, List methods, Object[] args, Object[] newArgs)(Code)



getConvertedType
public static Object getConvertedType(OgnlContext context, Object target, Member member, String propertyName, Object value, Class type)(Code)



getConvertedTypes
public static boolean getConvertedTypes(OgnlContext context, Object target, Member member, String propertyName, Class[] parameterTypes, Object[] args, Object[] newArgs)(Code)



getDeclaredMethods
final public static List getDeclaredMethods(Class targetClass, String propertyName, boolean findSets)(Code)



getElementsAccessor
final public static ElementsAccessor getElementsAccessor(Class cls) throws OgnlException(Code)



getEvaluationPool
public static EvaluationPool getEvaluationPool()(Code)



getField
final public static Field getField(Class inClass, String name)(Code)



getFieldValue
final public static Object getFieldValue(OgnlContext context, Object target, String propertyName) throws NoSuchFieldException(Code)



getFieldValue
final public static Object getFieldValue(OgnlContext context, Object target, String propertyName, boolean checkAccessAndExistence) throws NoSuchFieldException(Code)



getFields
final public static Map getFields(Class targetClass)(Code)



getGetMethod
final public static Method getGetMethod(OgnlContext context, Class targetClass, String propertyName) throws IntrospectionException, OgnlException(Code)



getIndexedProperty
final public static Object getIndexedProperty(OgnlContext context, Object source, String name, Object index) throws OgnlException(Code)



getIndexedPropertyType
final public static int getIndexedPropertyType(OgnlContext context, Class sourceClass, String name) throws OgnlException(Code)
Determines the index property type, if any. Returns INDEXED_PROPERTY_NONE if the property is not index-accessible as determined by OGNL or JavaBeans. If it is indexable then this will return whether it is a JavaBeans indexed property, conforming to the indexed property patterns (returns INDEXED_PROPERTY_INT) or if it conforms to the OGNL arbitrary object indexable (returns INDEXED_PROPERTY_OBJECT).



getMethodAccessor
final public static MethodAccessor getMethodAccessor(Class cls) throws OgnlException(Code)



getMethodValue
final public static Object getMethodValue(OgnlContext context, Object target, String propertyName) throws OgnlException, IllegalAccessException, NoSuchMethodException, IntrospectionException(Code)



getMethodValue
final public static Object getMethodValue(OgnlContext context, Object target, String propertyName, boolean checkAccessAndExistence) throws OgnlException, IllegalAccessException, NoSuchMethodException, IntrospectionException(Code)
If the checkAccessAndExistence flag is true this method will check to see if the method exists and if it is accessible according to the context's MemberAccess. If neither test passes this will return NotFound.



getMethods
final public static Map getMethods(Class targetClass, boolean staticMethods)(Code)



getMethods
final public static List getMethods(Class targetClass, String name, boolean staticMethods)(Code)



getModifierString
final public static String getModifierString(int modifiers)(Code)



getNullHandler
final public static NullHandler getNullHandler(Class cls) throws OgnlException(Code)



getObjectArrayPool
public static ObjectArrayPool getObjectArrayPool()(Code)



getPackageName
public static String getPackageName(Object o)(Code)
Returns the package name of the object's class.



getParameterTypes
public static Class[] getParameterTypes(Method m)(Code)
Returns the parameter types of the given method.



getParameterTypes
public static Class[] getParameterTypes(Constructor c)(Code)
Returns the parameter types of the given method.



getPermission
public static Permission getPermission(Method method)(Code)
Permission will be named "invoke..".



getPointerString
public static String getPointerString(int num)(Code)
Returns a "pointer" string in the usual format for these things - 0x.



getPointerString
public static String getPointerString(Object o)(Code)
Returns a "pointer" string in the usual format for these things - 0x for the object given. This will always return a unique value for each object.



getPrimitiveDefaultValue
public static Object getPrimitiveDefaultValue(Class forClass)(Code)



getProperty
final public static Object getProperty(OgnlContext context, Object source, Object name) throws OgnlException(Code)



getPropertyAccessor
final public static PropertyAccessor getPropertyAccessor(Class cls) throws OgnlException(Code)



getPropertyDescriptor
final public static PropertyDescriptor getPropertyDescriptor(Class targetClass, String propertyName) throws IntrospectionException, OgnlException(Code)
This method returns a PropertyDescriptor for the given class and property name using a Map lookup (using getPropertyDescriptorsMap()).



getPropertyDescriptorFromArray
final public static PropertyDescriptor getPropertyDescriptorFromArray(Class targetClass, String name) throws IntrospectionException(Code)
Gets the property descriptor with the given name for the target class given.
Parameters:
  targetClass - Class for which property descriptor is desired
Parameters:
  name - Name of property PropertyDescriptor of the named property or null ifthe class has no property with the given name



getPropertyDescriptors
final public static Map getPropertyDescriptors(Class targetClass) throws IntrospectionException, OgnlException(Code)
This method returns the property descriptors for the given class as a Map



getPropertyDescriptorsArray
final public static PropertyDescriptor[] getPropertyDescriptorsArray(Class targetClass) throws IntrospectionException(Code)



getSecurityManager
public static SecurityManager getSecurityManager()(Code)
Gets the SecurityManager that OGNL uses to determine permissions for invoking methods. SecurityManager for OGNL



getSetMethod
final public static Method getSetMethod(OgnlContext context, Class targetClass, String propertyName) throws IntrospectionException, OgnlException(Code)



getStaticField
final public static Object getStaticField(OgnlContext context, String className, String fieldName) throws OgnlException(Code)



getTargetClass
public static Class getTargetClass(Object o)(Code)
Gets the "target" class of an object for looking up accessors that are registered on the target. If the object is a Class object this will return the Class itself, else it will return object's getClass() result.



getUniqueDescriptor
public static String getUniqueDescriptor(Object object, boolean fullyQualified)(Code)
Returns a unique descriptor string that includes the object's class and a unique integer identifier. If fullyQualified is true then the class name will be fully qualified to include the package name, else it will be just the class' base name.



getUniqueDescriptor
public static String getUniqueDescriptor(Object object)(Code)
Returns a unique descriptor string that includes the object's class' base name and a unique integer identifier.



hasField
final public static boolean hasField(OgnlContext context, Object target, Class inClass, String propertyName)(Code)



hasGetMethod
final public static boolean hasGetMethod(OgnlContext context, Object target, Class targetClass, String propertyName) throws IntrospectionException, OgnlException(Code)



hasGetProperty
final public static boolean hasGetProperty(OgnlContext context, Object target, Object oname) throws IntrospectionException, OgnlException(Code)



hasSetMethod
final public static boolean hasSetMethod(OgnlContext context, Object target, Class targetClass, String propertyName) throws IntrospectionException, OgnlException(Code)



hasSetProperty
final public static boolean hasSetProperty(OgnlContext context, Object target, Object oname) throws IntrospectionException, OgnlException(Code)



invokeMethod
public static Object invokeMethod(Object target, Method method, Object[] argsArray) throws InvocationTargetException, IllegalAccessException(Code)



isFieldAccessible
final public static boolean isFieldAccessible(OgnlContext context, Object target, Class inClass, String propertyName)(Code)



isFieldAccessible
final public static boolean isFieldAccessible(OgnlContext context, Object target, Field field, String propertyName)(Code)



isInstance
final public static boolean isInstance(OgnlContext context, Object value, String className) throws OgnlException(Code)



isMethodAccessible
final public static boolean isMethodAccessible(OgnlContext context, Object target, Method method, String propertyName)(Code)



isMoreSpecific
final public static boolean isMoreSpecific(Class[] classes1, Class[] classes2)(Code)
Tells whether the first array of classes is more specific than the second. Assumes that the two arrays are of the same length.



isTypeCompatible
final public static boolean isTypeCompatible(Object object, Class c)(Code)
Tells whether the given object is compatible with the given class ---that is, whether the given object can be passed as an argument to a method or constructor whose parameter type is the given class. If object is null this will return true because null is compatible with any type.



setElementsAccessor
final public static void setElementsAccessor(Class cls, ElementsAccessor accessor)(Code)



setFieldValue
final public static boolean setFieldValue(OgnlContext context, Object target, String propertyName, Object value) throws OgnlException(Code)



setIndexedProperty
final public static void setIndexedProperty(OgnlContext context, Object source, String name, Object index, Object value) throws OgnlException(Code)



setMethodAccessor
final public static void setMethodAccessor(Class cls, MethodAccessor accessor)(Code)



setMethodValue
final public static boolean setMethodValue(OgnlContext context, Object target, String propertyName, Object value) throws OgnlException, IllegalAccessException, NoSuchMethodException, MethodFailedException, IntrospectionException(Code)



setMethodValue
final public static boolean setMethodValue(OgnlContext context, Object target, String propertyName, Object value, boolean checkAccessAndExistence) throws OgnlException, IllegalAccessException, NoSuchMethodException, MethodFailedException, IntrospectionException(Code)



setNullHandler
final public static void setNullHandler(Class cls, NullHandler handler)(Code)



setProperty
final public static void setProperty(OgnlContext context, Object target, Object name, Object value) throws OgnlException(Code)



setPropertyAccessor
final public static void setPropertyAccessor(Class cls, PropertyAccessor accessor)(Code)



setSecurityManager
public static void setSecurityManager(SecurityManager value)(Code)
Sets the SecurityManager that OGNL uses to determine permissions for invoking methods.
Parameters:
  value - SecurityManager to set



toArray
public static Object[] toArray(List list)(Code)
Utility to convert a List into an Object[] array. If the list is zero elements this will return a constant array; toArray() on List always returns a new object and this is wasteful for our purposes.



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.