Java Doc for Any.java in  » Web-Framework » anvil » anvil » core » 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 » Web Framework » anvil » anvil.core 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   anvil.core.Any

All known Subclasses:   anvil.core.AnyInfinity,  anvil.core.AnyAbstractClass,  anvil.core.AnyRef,  anvil.core.AnyUndefined,  anvil.core.Array,  anvil.core.AnyBoolean,  anvil.core.AnyClass,  anvil.core.AnyRange,  anvil.core.AnyNegativeInfinity,  anvil.core.AnyMap,  anvil.core.AnyNull,  anvil.core.AnyNumber,  anvil.core.AnyPattern,  anvil.core.AnySequence,
Any
public class Any implements Cloneable,Comparable(Code)
class Any
author:
   Jani Lehtimäki

Inner Class :public static class Op

Field Summary
final public static transient  Any[]ARRAY0
    
final public static transient  AnyDOUBLE_MINUS_ONE
    
final public static transient  AnyDOUBLE_ONE
    
final public static transient  AnyDOUBLE_ZERO
    
final public static transient  AnyEMPTY_STRING
    
final public static transient  AnyTupleEMPTY_TUPLE
    
final public static transient  AnyFALSE
    
final public static transient  AnyINF
    
final public static transient  intIS_ARRAY
    
final public static transient  intIS_BINARY
    
final public static transient  intIS_BOOLEAN
    
final public static transient  intIS_BUFFER
    
final public static transient  intIS_CLASS
    
final public static transient  intIS_DOUBLE
    
final public static transient  intIS_ENUMERATION
    
final public static transient  intIS_INF
    
final public static transient  intIS_INT
    
final public static transient  intIS_LIST
    
final public static transient  intIS_MAP
    
final public static transient  intIS_NEG_INF
    
final public static transient  intIS_NULL
    
final public static transient  intIS_PATTERN
    
final public static transient  intIS_RANGE
    
final public static transient  intIS_REF
    
final public static transient  intIS_STRING
    
final public static transient  intIS_TUPLE
    
final public static transient  intIS_UNDEFINED
    
final public static transient  AnyMINUS_ONE
    
final public static transient  AnyNAN
    
final public static transient  AnyNEG_INF
    
final public static transient  AnyNULL
    
final public static transient  AnyONE
    
final public static transient  AnyTRUE
    
final public static transient  AnyTWO
    
final public static transient  AnyUNDEFINED
    
final public static transient  AnyZERO
    
final public static  anvil.script.compiler.NativeClass__class__
    
final public static  Object[]p_compareTo
    
final public static  Object[]p_equals
    

Constructor Summary
protected  Any()
     Constructs Any containing IS_NULL.

Method Summary
public  Anyadd(Any other)
     Adds two Any's together.
public  Anyand(Any any)
     Logical AND.
public  booleanbooleanAnd(Any any)
     Logical AND.
public  booleanbooleanNot()
     Perform logical negation.
public  booleanbooleanOr(Any any)
     Logical OR.
public  AnycheckAttribute(Context context, String attribute)
    
public  AnycheckReference(Context context, Any index)
    
final public  StringclassNameOf()
    
public  anvil.script.ClassTypeclassOf()
     Returns the type of this Any.
public  Objectclone()
     Returns shallow copy from this any.
public  Anycoerce()
    
protected  intcompare(Any other)
    
final public  intcompareTo(Object obj)
     Compares two Any's.
public  Anyconcat(Any any)
     Concatenated two Any's together.
public  booleancontains(Any value)
    
public  Anycopy()
     Returns deep copy from this any.
public static  Anycreate()
     Constructs Any containing IS_NULL.
public static  Anycreate(char ch)
     Constructs Any containing IS_STRING with length == 1 and charAt(0) == ch.
public static  Anycreate(String string)
    
public static  Anycreate(String[] array)
    
public static  Anycreate(int integer)
    
public static  Anycreate(long lng)
    
public static  Anycreate(Integer integer)
    
public static  Anycreate(double dbl)
    
public static  Anycreate(Double dbl)
    
public static  Anycreate(boolean bool)
    
public static  Anycreate(Boolean bool)
    
public static  Anycreate(int type, String value)
    
public static  Anycreate(Object object)
    
public static  Anycreate(Any any)
    
public  Anydecrease()
     Decrease the value by one.
public  booleandeleteAttribute(Context context, String attribute)
    
public  booleandeleteReference(Context context, Any index)
    
public  Anydivide(Any b)
     Divide two Any's.
public  BindingEnumerationenumeration()
    
public  booleanequals(Object obj)
     Tests for equality.
public  Anyexecute(Context context, Any[] parameters)
    
public  Anyexecute(Context context)
    
public  Anyexecute(Context context, Any param1)
    
public  Anyexecute(Context context, Any param1, Any param2)
    
public  Anyexecute(Context context, Any param1, Any param2, Any param3)
    
public  Anyexecute(Context context, Any param1, Any param2, Any param3, Any param4)
    
public  AnygetAttribute(Context context, String attribute)
    
public  AnygetRef()
    
public  AnygetReference(Context context, Any index)
    
public  booleanhas(String methodName)
    
public  inthashCode()
     Calculates the hashcode of this Any.
public  Anyincrease()
     Increase the value by one.
public  Anyinvoke(Context context, int methodIndex, Any[] parameters)
    
public  Anyinvoke(Context context, int methodIndex)
    
public  Anyinvoke(Context context, int methodIndex, Any param1)
    
public  Anyinvoke(Context context, int methodIndex, Any param1, Any param2)
    
public  Anyinvoke(Context context, int methodIndex, Any param1, Any param2, Any param3)
    
public  Anyinvoke(Context context, int methodIndex, Any param1, Any param2, Any param3, Any param4)
    
public  Anyinvoke(Context context, String methodName, Any[] parameters)
    
public  Anyinvoke(Context context, String methodName)
    
public  Anyinvoke(Context context, String methodName, Any param1)
    
public  Anyinvoke(Context context, String methodName, Any param1, Any param2)
    
public  Anyinvoke(Context context, String methodName, Any param1, Any param2, Any param3)
    
public  Anyinvoke(Context context, String methodName, Any param1, Any param2, Any param3, Any param4)
    
public  booleanisArray()
     Checks if this any is array.
public  booleanisBinary()
     Checks if this any is binary.
public  booleanisBoolean()
     Checks if this any is boolean.
public  booleanisBuffer()
     Checks if this any is buffer.
public  booleanisClass()
     Checks if this any is class.
public  booleanisDefined()
     Checks if this any is defined.
public  booleanisDouble()
     Checks if this any is float.
public  booleanisEnumeration()
     Checks if this any is enumeration.
public  booleanisInstanceOf(Type ofType)
     Checks if this any is of given type.
Parameters:
  ofClass - Type to check against.
public  booleanisInt()
     Checks if this any is int.
public  booleanisList()
     Checks if this any is list.
public  booleanisMap()
     Checks if this any is map.
public  booleanisMutable()
    
public  booleanisNull()
     Checks if this any is null.
public  booleanisPattern()
     Checks if this any is pattern.
public  booleanisRange()
     Checks if this any is range.
public  booleanisRef()
    
public  booleanisSequence()
    
public  booleanisString()
     Checks if this any is string.
public  booleanisTuple()
     Checks if this any is tuple.
public  booleanisUndefined()
     Checks if this any is undefined.
public  Anym_clone()
    
public  Anym_compareTo(Any other)
    
public  Anym_copy()
    
public  Anym_equals(Any other)
    
public  Anym_hashCode()
    
public  Anym_toBoolean()
    
public  Anym_toString()
    
public  Anyminus()
     Negate the sign.
public  Anymodulo(Any b)
     Calculate the remainder.
public  Anymultiply(Any b)
     Multiply two Any's.
public  ScriptExceptionnonExistentMethod(Context context, int methodIndex)
    
public  Anynot()
     Perform logical negation.
public  Anyor(Any any)
     Logical OR.
public  ScriptExceptionparametersMissing(Context context, String method)
    
public  ScriptExceptionparametersMissing(Context context, int methodIndex)
    
public  Anyplus()
     Remove the sign.
public  voidserialize(Serializer serializer)
    
public  AnysetAttribute(Context context, String attribute, Any value)
    
public  voidsetRef(Any value)
    
public  AnysetReference(Context context, Any index, Any value)
    
public  AnysetReference(Context context, Any value)
    
public  intsizeOf()
     Returns the logical size of this any.
public  Anysubtract(Any b)
     Substract two Any's.
public  StringtoAnvil()
     Converts contained value into value anvil code.
public  WritertoAnvil(Writer writer)
    
public  AnytoAnyBoolean()
    
public  AnytoAnyDouble()
     Gets the contained value as AnyDouble.
public  AnytoAnyInt()
     Gets the contained value as AnyInt.
public  AnytoAnyString()
     Converts contained value into AnyString.
public  ArraytoArray()
     Gets the contained vaelue as Array.
public  byte[]toBinary()
     Gets the contained value as byte[].
public  booleantoBoolean()
     Gets the contained value as boolean.
public  StringBuffertoBuffer()
    
public  bytetoByte()
    
public  chartoChar()
     Gets the contained value as char.
public  AnyClasstoClass()
    
public  anvil.codec.CodetoCode(anvil.codec.Code code)
    
public  doubletoDouble()
     Gets the contained value as double.
public  inttoInt()
     Gets the contained value as int.
public  StringtoJava()
    
public  WritertoJava(Writer writer)
    
public  Any[]toList()
    
public  longtoLong()
     Gets the contained value as long.
public  AnyMaptoMap()
    
public  ObjecttoObject()
     Gets the contained value as java.lang.Object.
public  PatterntoPattern()
    
public  AnyRangetoRange()
    
public  StringtoString()
     Converts contained value into String.
public  Any[]toTuple()
     Gets the contained value as Any[].
public  Typetype()
    
public  inttypeOf()
     Returns the type of contained value.

Field Detail
ARRAY0
final public static transient Any[] ARRAY0(Code)



DOUBLE_MINUS_ONE
final public static transient Any DOUBLE_MINUS_ONE(Code)



DOUBLE_ONE
final public static transient Any DOUBLE_ONE(Code)



DOUBLE_ZERO
final public static transient Any DOUBLE_ZERO(Code)



EMPTY_STRING
final public static transient Any EMPTY_STRING(Code)



EMPTY_TUPLE
final public static transient AnyTuple EMPTY_TUPLE(Code)



FALSE
final public static transient Any FALSE(Code)



INF
final public static transient Any INF(Code)



IS_ARRAY
final public static transient int IS_ARRAY(Code)



IS_BINARY
final public static transient int IS_BINARY(Code)



IS_BOOLEAN
final public static transient int IS_BOOLEAN(Code)



IS_BUFFER
final public static transient int IS_BUFFER(Code)



IS_CLASS
final public static transient int IS_CLASS(Code)



IS_DOUBLE
final public static transient int IS_DOUBLE(Code)



IS_ENUMERATION
final public static transient int IS_ENUMERATION(Code)



IS_INF
final public static transient int IS_INF(Code)



IS_INT
final public static transient int IS_INT(Code)



IS_LIST
final public static transient int IS_LIST(Code)



IS_MAP
final public static transient int IS_MAP(Code)



IS_NEG_INF
final public static transient int IS_NEG_INF(Code)



IS_NULL
final public static transient int IS_NULL(Code)



IS_PATTERN
final public static transient int IS_PATTERN(Code)



IS_RANGE
final public static transient int IS_RANGE(Code)



IS_REF
final public static transient int IS_REF(Code)



IS_STRING
final public static transient int IS_STRING(Code)



IS_TUPLE
final public static transient int IS_TUPLE(Code)



IS_UNDEFINED
final public static transient int IS_UNDEFINED(Code)



MINUS_ONE
final public static transient Any MINUS_ONE(Code)



NAN
final public static transient Any NAN(Code)



NEG_INF
final public static transient Any NEG_INF(Code)



NULL
final public static transient Any NULL(Code)



ONE
final public static transient Any ONE(Code)



TRUE
final public static transient Any TRUE(Code)



TWO
final public static transient Any TWO(Code)



UNDEFINED
final public static transient Any UNDEFINED(Code)



ZERO
final public static transient Any ZERO(Code)



__class__
final public static anvil.script.compiler.NativeClass __class__(Code)



p_compareTo
final public static Object[] p_compareTo(Code)



p_equals
final public static Object[] p_equals(Code)




Constructor Detail
Any
protected Any()(Code)
Constructs Any containing IS_NULL.




Method Detail
add
public Any add(Any other)(Code)
Adds two Any's together.
Parameters:
  any - Value of add Calculated value



and
public Any and(Any any)(Code)
Logical AND.
Parameters:
  any - Any Result of AND



booleanAnd
public boolean booleanAnd(Any any)(Code)
Logical AND.
Parameters:
  any - Any Result of AND



booleanNot
public boolean booleanNot()(Code)
Perform logical negation. Will only work with boolean, integer and double. Negated value



booleanOr
public boolean booleanOr(Any any)(Code)
Logical OR.
Parameters:
  any - Any Result of OR



checkAttribute
public Any checkAttribute(Context context, String attribute)(Code)



checkReference
public Any checkReference(Context context, Any index)(Code)



classNameOf
final public String classNameOf()(Code)
Returns the classname of contained object



classOf
public anvil.script.ClassType classOf()(Code)
Returns the type of this Any.



clone
public Object clone()(Code)
Returns shallow copy from this any. Shallow copy



coerce
public Any coerce()(Code)



compare
protected int compare(Any other)(Code)



compareTo
final public int compareTo(Object obj)(Code)
Compares two Any's. Will not work with Hashtable.
Parameters:
  any - Value to compare with -1 if this is less than paramter.0 if equal.1 if this if greater than parameter.



concat
public Any concat(Any any)(Code)
Concatenated two Any's together. Returned type will be IS_STRING.
Parameters:
  any - Value of add Calculated value



contains
public boolean contains(Any value)(Code)



copy
public Any copy()(Code)
Returns deep copy from this any.



create
public static Any create()(Code)
Constructs Any containing IS_NULL.



create
public static Any create(char ch)(Code)
Constructs Any containing IS_STRING with length == 1 and charAt(0) == ch.
Parameters:
  string - String value



create
public static Any create(String string)(Code)
Constructs Any containing IS_STRING
Parameters:
  string - String value



create
public static Any create(String[] array)(Code)



create
public static Any create(int integer)(Code)
Constructs Any containing IS_INT
Parameters:
  integer - int value



create
public static Any create(long lng)(Code)
Constructs Any containing IS_INT
Parameters:
  lng - long value



create
public static Any create(Integer integer)(Code)
Constructs Any containing IS_INT
Parameters:
  i - java.lang.Integer value



create
public static Any create(double dbl)(Code)
Constructs Any containing IS_DOUBLE
Parameters:
  dbl - double value



create
public static Any create(Double dbl)(Code)
Constructs Any containing IS_DOUBLE
Parameters:
  dbl - java.lang.Double value



create
public static Any create(boolean bool)(Code)
Constructs Any containing IS_BOOLEAN
Parameters:
  bool - boolean value



create
public static Any create(Boolean bool)(Code)
Constructs Any containing IS_BOOLEAN
Parameters:
  bool - java.lang.Boolean value



create
public static Any create(int type, String value)(Code)
Constructs Any with spefified type and value
Parameters:
  type - type of value
Parameters:
  value - string presentation of value of given type



create
public static Any create(Object object)(Code)



create
public static Any create(Any any)(Code)
Constructs Any from another Any instance
Parameters:
  any - Any value



decrease
public Any decrease()(Code)
Decrease the value by one. Decreased value



deleteAttribute
public boolean deleteAttribute(Context context, String attribute)(Code)



deleteReference
public boolean deleteReference(Context context, Any index)(Code)



divide
public Any divide(Any b)(Code)
Divide two Any's.
Parameters:
  any - Divider Calculated value



enumeration
public BindingEnumeration enumeration()(Code)



equals
public boolean equals(Object obj)(Code)
Tests for equality.
Parameters:
  o - Object to check. Valid types areBoolean, Integer, Double, String, Array and Any.No conversions are made, so, if the actual type doesn't match between two objects false is returned. true if equal, false otherwise.



execute
public Any execute(Context context, Any[] parameters)(Code)



execute
public Any execute(Context context)(Code)



execute
public Any execute(Context context, Any param1)(Code)



execute
public Any execute(Context context, Any param1, Any param2)(Code)



execute
public Any execute(Context context, Any param1, Any param2, Any param3)(Code)



execute
public Any execute(Context context, Any param1, Any param2, Any param3, Any param4)(Code)



getAttribute
public Any getAttribute(Context context, String attribute)(Code)



getRef
public Any getRef()(Code)



getReference
public Any getReference(Context context, Any index)(Code)



has
public boolean has(String methodName)(Code)



hashCode
public int hashCode()(Code)
Calculates the hashcode of this Any. Hashcode.



increase
public Any increase()(Code)
Increase the value by one. Increased value



invoke
public Any invoke(Context context, int methodIndex, Any[] parameters)(Code)



invoke
public Any invoke(Context context, int methodIndex)(Code)



invoke
public Any invoke(Context context, int methodIndex, Any param1)(Code)



invoke
public Any invoke(Context context, int methodIndex, Any param1, Any param2)(Code)



invoke
public Any invoke(Context context, int methodIndex, Any param1, Any param2, Any param3)(Code)



invoke
public Any invoke(Context context, int methodIndex, Any param1, Any param2, Any param3, Any param4)(Code)



invoke
public Any invoke(Context context, String methodName, Any[] parameters)(Code)



invoke
public Any invoke(Context context, String methodName)(Code)



invoke
public Any invoke(Context context, String methodName, Any param1)(Code)



invoke
public Any invoke(Context context, String methodName, Any param1, Any param2)(Code)



invoke
public Any invoke(Context context, String methodName, Any param1, Any param2, Any param3)(Code)



invoke
public Any invoke(Context context, String methodName, Any param1, Any param2, Any param3, Any param4)(Code)



isArray
public boolean isArray()(Code)
Checks if this any is array. true if this is array



isBinary
public boolean isBinary()(Code)
Checks if this any is binary. true if this is binary



isBoolean
public boolean isBoolean()(Code)
Checks if this any is boolean. true if this is boolean



isBuffer
public boolean isBuffer()(Code)
Checks if this any is buffer. true if this is buffer



isClass
public boolean isClass()(Code)
Checks if this any is class. true if this is class



isDefined
public boolean isDefined()(Code)
Checks if this any is defined. Only undefined returns false for this method. true if this is other than undefined



isDouble
public boolean isDouble()(Code)
Checks if this any is float. In script the float is used, but the implementation uses double. true if this is float



isEnumeration
public boolean isEnumeration()(Code)
Checks if this any is enumeration. true if this is enumeration



isInstanceOf
public boolean isInstanceOf(Type ofType)(Code)
Checks if this any is of given type.
Parameters:
  ofClass - Type to check against. true if this any if of given type.



isInt
public boolean isInt()(Code)
Checks if this any is int. true if this is int



isList
public boolean isList()(Code)
Checks if this any is list. true if this is list



isMap
public boolean isMap()(Code)
Checks if this any is map. true if this is map



isMutable
public boolean isMutable()(Code)



isNull
public boolean isNull()(Code)
Checks if this any is null. true if this is null



isPattern
public boolean isPattern()(Code)
Checks if this any is pattern. true if this is pattern



isRange
public boolean isRange()(Code)
Checks if this any is range. true if this is range



isRef
public boolean isRef()(Code)



isSequence
public boolean isSequence()(Code)



isString
public boolean isString()(Code)
Checks if this any is string. true if this is string



isTuple
public boolean isTuple()(Code)
Checks if this any is tuple. true if this is tuple



isUndefined
public boolean isUndefined()(Code)
Checks if this any is undefined. true if this is undefined



m_clone
public Any m_clone()(Code)



m_compareTo
public Any m_compareTo(Any other)(Code)



m_copy
public Any m_copy()(Code)
Exposed methods ***********



m_equals
public Any m_equals(Any other)(Code)



m_hashCode
public Any m_hashCode()(Code)



m_toBoolean
public Any m_toBoolean()(Code)



m_toString
public Any m_toString()(Code)



minus
public Any minus()(Code)
Negate the sign. Negated value



modulo
public Any modulo(Any b)(Code)
Calculate the remainder.
Parameters:
  any - Divider for modulus Calculated value



multiply
public Any multiply(Any b)(Code)
Multiply two Any's. Returned type will be the same as of this instance. Will only work with integer and double.
Parameters:
  any - Multiplicator Calculated value



nonExistentMethod
public ScriptException nonExistentMethod(Context context, int methodIndex)(Code)



not
public Any not()(Code)
Perform logical negation. Will only work with boolean, integer and double. Negated value



or
public Any or(Any any)(Code)
Logical OR.
Parameters:
  any - Any Result of OR



parametersMissing
public ScriptException parametersMissing(Context context, String method)(Code)



parametersMissing
public ScriptException parametersMissing(Context context, int methodIndex)(Code)



plus
public Any plus()(Code)
Remove the sign. Value, with sign removed



serialize
public void serialize(Serializer serializer) throws IOException(Code)



setAttribute
public Any setAttribute(Context context, String attribute, Any value)(Code)



setRef
public void setRef(Any value)(Code)



setReference
public Any setReference(Context context, Any index, Any value)(Code)



setReference
public Any setReference(Context context, Any value)(Code)



sizeOf
public int sizeOf()(Code)
Returns the logical size of this any. Logical size



subtract
public Any subtract(Any b)(Code)
Substract two Any's.
Parameters:
  any - Value of subtract Calculated value



toAnvil
public String toAnvil()(Code)
Converts contained value into value anvil code. Value as anvil code.



toAnvil
public Writer toAnvil(Writer writer) throws IOException(Code)



toAnyBoolean
public Any toAnyBoolean()(Code)
Gets the contained value as AnyTrue or AnyFalse Value as AnyBoolean.



toAnyDouble
public Any toAnyDouble()(Code)
Gets the contained value as AnyDouble. Value as AnyDouble.



toAnyInt
public Any toAnyInt()(Code)
Gets the contained value as AnyInt. Value as AnyInt.



toAnyString
public Any toAnyString()(Code)
Converts contained value into AnyString. Value as AnyString.



toArray
public Array toArray()(Code)
Gets the contained vaelue as Array. Value as Array or null if this instance doesn't contain Array.



toBinary
public byte[] toBinary()(Code)
Gets the contained value as byte[]. Value as byte[] or null if this instance isn't AnyBinary.



toBoolean
public boolean toBoolean()(Code)
Gets the contained value as boolean. Integer is considered true if it is different from 0. Double is considered true if it is different from 0.0. String is considered true if it contains "true", "on", "yes" or "1". Value as boolean or false if it can't be transformed.



toBuffer
public StringBuffer toBuffer()(Code)



toByte
public byte toByte()(Code)



toChar
public char toChar()(Code)
Gets the contained value as char. Value is converted to string and first character is returned. Value as char



toClass
public AnyClass toClass()(Code)



toCode
public anvil.codec.Code toCode(anvil.codec.Code code)(Code)



toDouble
public double toDouble()(Code)
Gets the contained value as double. Value as double or 0.0 if it can't be transformed.



toInt
public int toInt()(Code)
Gets the contained value as int. Value as int or zero if it can't be transformed.



toJava
public String toJava()(Code)



toJava
public Writer toJava(Writer writer) throws IOException(Code)



toList
public Any[] toList()(Code)



toLong
public long toLong()(Code)
Gets the contained value as long. Value as long or zero if it can't be transformed.



toMap
public AnyMap toMap()(Code)



toObject
public Object toObject()(Code)
Gets the contained value as java.lang.Object. Value as Object.



toPattern
public Pattern toPattern()(Code)



toRange
public AnyRange toRange()(Code)



toString
public String toString()(Code)
Converts contained value into String. Value as String.



toTuple
public Any[] toTuple()(Code)
Gets the contained value as Any[]. Value as Any[] or null if this instance isn't AnyTuple.



type
public Type type()(Code)



typeOf
public int typeOf()(Code)
Returns the type of contained value. Type of this any as int.



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.