Java Doc for Expr.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » el » 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 » EJB Server resin 3.1.5 » resin » com.caucho.el 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.caucho.el.Expr

All known Subclasses:   com.caucho.el.AbstractBooleanExpr,  com.caucho.el.DoubleLiteral,  com.caucho.el.IdExpr,  com.caucho.el.DivExpr,  com.caucho.el.StringLiteral,  com.caucho.el.SubExpr,  com.caucho.el.LongLiteral,  com.caucho.el.FunctionExpr,  com.caucho.el.MethodExpr,  com.caucho.el.AddExpr,  com.caucho.jsf.el.ImplicitObjectExpr,  com.caucho.el.ArrayExpr,  com.caucho.el.ConditionalExpr,  com.caucho.el.NullLiteral,  com.caucho.el.MinusExpr,  com.caucho.el.PathExpr,  com.caucho.el.StaticMethodExpr,  com.caucho.el.MulExpr,  com.caucho.jsp.el.ImplicitObjectExpr,  com.caucho.el.UnaryExpr,  com.caucho.el.ArrayResolverExpr,  com.caucho.el.ModExpr,  com.caucho.el.BinaryExpr,  com.caucho.jsp.el.ImplicitFieldExpr,  com.caucho.el.InterpolateExpr,  com.caucho.el.ValueExpr,
Expr
abstract public class Expr extends ValueExpression (Code)
Abstract implementation class for an expression.


Field Summary
final static  intADD
    
final static  intAND
    
final static  intBOOLEAN
    
final static  intBOOLEAN_OBJ
    
final static  intBYTE
    
final static  intBYTE_OBJ
    
final static  intDIV
    
final static  intDOUBLE
    
final static  intDOUBLE_OBJ
    
final static  intEMPTY
    
final static  intEQ
    
final static  intFLOAT
    
final static  intFLOAT_OBJ
    
final static  intGE
    
final static  intGT
    
final static  intINT
    
final static  intINT_OBJ
    
final protected static  L10NL
    
final static  intLE
    
final static  intLONG
    
final static  intLONG_OBJ
    
final static  intLT
    
final static  intMINUS
    
final static  intMOD
    
final static  intMUL
    
final static  intNE
    
final static  intNOT
    
final static  intOBJECT
    
final static  intOR
    
final static  intSHORT
    
final static  intSHORT_OBJ
    
final static  intSTRING
    
final static  intSUB
    
final static  IntMap_typeMap
    
final protected static  Loggerlog
    


Method Summary
public static  ObjectcoerceToType(Object obj, Class targetType)
    
public  ExprcreateField(Expr field)
     Creates a field reference using this expression as the base object.
public  ExprcreateField(String field)
     Creates a field reference using this expression as the base object.
public  ExprcreateMethod(Expr[] args)
    
public  booleanequals(Object o)
    
public static  Objecterror(Throwable e, ELContext env)
    
public  BigDecimalevalBigDecimal(ELContext env)
     Evaluate the expression, knowing the value should be a BigDecimal.
public  BigIntegerevalBigInteger(ELContext env)
     Evaluate the expression, knowing the value should be a BigInteger.
public  booleanevalBoolean(ELContext env)
     Evaluate the expression, knowing the value should be a boolean.
public  charevalCharacter(ELContext env)
    
public  doubleevalDouble(ELContext env)
     Evaluate the expression, knowing the value should be a double.
public  longevalLong(ELContext env)
    
final public  ObjectevalObject(ELContext env)
     Evaluates the expression, returning an object.
public  longevalPeriod(ELContext env)
    
public  StringevalString(ELContext env)
    
public  StringevalStringWithNull(ELContext env)
    
public  ClassgetExpectedType()
    
public  StringgetExpressionString()
    
public  MethodInfogetMethodInfo(ELContext env, Class returnType, Class[] argTypes)
     Evaluates the expression, returning an object.
public  ClassgetType(ELContext context)
    
abstract public  ObjectgetValue(ELContext env)
     Evaluates the expression, returning an object.
public  inthashCode()
    
public static  ObjectinvocationError(Throwable e)
    
public  Objectinvoke(ELContext env, Class[] argTypes, Object[] args)
     Evaluates the expression, returning an object.
public  booleanisConstant()
     Returns true if the expression is constant.
public static  booleanisDouble(Object o)
     Returns true for a double or double-equivalent.
protected static  booleanisDoubleString(Object obj)
    
public  booleanisLiteralText()
    
public  booleanisReadOnly(ELContext env)
     Returns true if the expression is read-only.
public  booleanprint(WriteStream out, ELContext env, boolean escapeXml)
     Evaluates directly to the output.
public  booleanprint(JspWriter out, ELContext env, boolean escapeXml)
     Evaluates directly to the output.
public  voidprintCreate(WriteStream os)
     Generates the code to regenerate the expression.
public static  voidprintEscaped(WriteStream os, ReadStream is)
     Write to the *.java stream escaping Java reserved characters.
public static  voidprintEscapedString(WriteStream os, String string)
     Write to the *.java stream escaping Java reserved characters.
public static  voidsetProperty(Object target, String property, Object value)
    
public  voidsetValue(ELContext env, Object value)
     Evaluates the expression, setting an object.
public static  BigDecimaltoBigDecimal(Object value, ELContext env)
     Converts some unknown value to a big decimal
Parameters:
  value - the value to be converted.
public static  BigIntegertoBigInteger(Object value, ELContext env)
     Converts some unknown value to a big integer
Parameters:
  value - the value to be converted.
public static  booleantoBoolean(Object value, ELContext env)
     Converts some unknown value to a boolean.
Parameters:
  value - the value to be converted.
public static  chartoCharacter(Object value, ELContext env)
     Converts some unknown value to a string.
Parameters:
  value - the value to be converted.
public static  doubletoDouble(Object value, ELContext env)
     Converts some unknown value to a double.
Parameters:
  value - the value to be converted.
public static  longtoLong(Object value, ELContext env)
     Converts some unknown value to a long.
Parameters:
  value - the value to be converted.
public static  booleantoStream(JspWriter out, Object value, boolean isEscaped)
     Write to the stream.
Parameters:
  out - the output stream
Parameters:
  value - the value to be written.
public static  voidtoStream(WriteStream out, Object value)
     Write to the stream.
public static  voidtoStream(JspWriter out, Object value)
     Write to the stream.
public static  voidtoStreamEscaped(Writer out, Object value)
     Write to the stream.
public static  voidtoStreamEscaped(WriteStream out, Object value)
     Write to the stream escaping XML reserved characters.
public static  voidtoStreamEscaped(Writer out, Reader in)
     Write to the stream escaping XML reserved characters.
public static  StringtoString(Object value, ELContext env)
     Converts some unknown value to a string.
Parameters:
  value - the value to be converted.
public static  StringtoString(long value, ELContext env)
     Converts some unknown value to a string.
Parameters:
  value - the value to be converted.
public static  StringtoString(double value, ELContext env)
     Converts some unknown value to a string.
Parameters:
  value - the value to be converted.
public static  StringtoString(boolean value, ELContext env)
     Converts some unknown value to a string.
Parameters:
  value - the value to be converted.
public static  StringtoString(char value, ELContext env)
     Converts some unknown value to a string.
Parameters:
  value - the value to be converted.
abstract public  StringtoString()
    
public static  StringtoStringWithNull(Object value, ELContext env)
     Converts some unknown value to a string.
Parameters:
  value - the value to be converted.

Field Detail
ADD
final static int ADD(Code)



AND
final static int AND(Code)



BOOLEAN
final static int BOOLEAN(Code)



BOOLEAN_OBJ
final static int BOOLEAN_OBJ(Code)



BYTE
final static int BYTE(Code)



BYTE_OBJ
final static int BYTE_OBJ(Code)



DIV
final static int DIV(Code)



DOUBLE
final static int DOUBLE(Code)



DOUBLE_OBJ
final static int DOUBLE_OBJ(Code)



EMPTY
final static int EMPTY(Code)



EQ
final static int EQ(Code)



FLOAT
final static int FLOAT(Code)



FLOAT_OBJ
final static int FLOAT_OBJ(Code)



GE
final static int GE(Code)



GT
final static int GT(Code)



INT
final static int INT(Code)



INT_OBJ
final static int INT_OBJ(Code)



L
final protected static L10N L(Code)



LE
final static int LE(Code)



LONG
final static int LONG(Code)



LONG_OBJ
final static int LONG_OBJ(Code)



LT
final static int LT(Code)



MINUS
final static int MINUS(Code)



MOD
final static int MOD(Code)



MUL
final static int MUL(Code)



NE
final static int NE(Code)



NOT
final static int NOT(Code)



OBJECT
final static int OBJECT(Code)



OR
final static int OR(Code)



SHORT
final static int SHORT(Code)



SHORT_OBJ
final static int SHORT_OBJ(Code)



STRING
final static int STRING(Code)



SUB
final static int SUB(Code)



_typeMap
final static IntMap _typeMap(Code)



log
final protected static Logger log(Code)





Method Detail
coerceToType
public static Object coerceToType(Object obj, Class targetType) throws ELException(Code)



createField
public Expr createField(Expr field)(Code)
Creates a field reference using this expression as the base object.
Parameters:
  field - the expression for the field.



createField
public Expr createField(String field)(Code)
Creates a field reference using this expression as the base object.
Parameters:
  field - the string reference for the field.



createMethod
public Expr createMethod(Expr[] args)(Code)
Creates a method call using this as the obj.method expression
Parameters:
  args - the arguments for the method



equals
public boolean equals(Object o)(Code)



error
public static Object error(Throwable e, ELContext env) throws ELException(Code)
Returns an error object



evalBigDecimal
public BigDecimal evalBigDecimal(ELContext env) throws ELException(Code)
Evaluate the expression, knowing the value should be a BigDecimal.
Parameters:
  env - the variable environment the value of the expression as a BigDecimal



evalBigInteger
public BigInteger evalBigInteger(ELContext env) throws ELException(Code)
Evaluate the expression, knowing the value should be a BigInteger.
Parameters:
  env - the variable environment the value of the expression as a BigInteger



evalBoolean
public boolean evalBoolean(ELContext env) throws ELException(Code)
Evaluate the expression, knowing the value should be a boolean.
Parameters:
  env - the variable environment the value of the expression as a boolean



evalCharacter
public char evalCharacter(ELContext env) throws ELException(Code)
Evaluate the expression, knowing the value should be a string
Parameters:
  env - the variable environment the value of the expression as a string



evalDouble
public double evalDouble(ELContext env) throws ELException(Code)
Evaluate the expression, knowing the value should be a double.
Parameters:
  env - the variable environment the value of the expression as a double



evalLong
public long evalLong(ELContext env) throws ELException(Code)
Evaluate the expression, knowing the value should be a long
Parameters:
  env - the variable environment the value of the expression as a double



evalObject
final public Object evalObject(ELContext env) throws ELException(Code)
Evaluates the expression, returning an object.
Parameters:
  env - the variable environment the value of the expression as an object



evalPeriod
public long evalPeriod(ELContext env) throws ELException(Code)
Evaluate the expression, knowing the value should be a period
Parameters:
  env - the variable environment the value of the expression as a period



evalString
public String evalString(ELContext env) throws ELException(Code)
Evaluate the expression, knowing the value should be a string
Parameters:
  env - the variable environment the value of the expression as a string



evalStringWithNull
public String evalStringWithNull(ELContext env) throws ELException(Code)
Evaluate the expression, knowing the value should be a string
Parameters:
  env - the variable environment the value of the expression as a string



getExpectedType
public Class getExpectedType()(Code)



getExpressionString
public String getExpressionString()(Code)



getMethodInfo
public MethodInfo getMethodInfo(ELContext env, Class returnType, Class[] argTypes) throws ELException(Code)
Evaluates the expression, returning an object.
Parameters:
  env - the variable environment the value of the expression as an object



getType
public Class getType(ELContext context) throws PropertyNotFoundException, ELException(Code)



getValue
abstract public Object getValue(ELContext env) throws ELException(Code)
Evaluates the expression, returning an object.
Parameters:
  env - the variable environment the value of the expression as an object



hashCode
public int hashCode()(Code)



invocationError
public static Object invocationError(Throwable e) throws ELException(Code)
Returns an error object



invoke
public Object invoke(ELContext env, Class[] argTypes, Object[] args) throws ELException(Code)
Evaluates the expression, returning an object.
Parameters:
  env - the variable environment the value of the expression as an object



isConstant
public boolean isConstant()(Code)
Returns true if the expression is constant.



isDouble
public static boolean isDouble(Object o)(Code)
Returns true for a double or double-equivalent.



isDoubleString
protected static boolean isDoubleString(Object obj)(Code)



isLiteralText
public boolean isLiteralText()(Code)
Returns true if the expression is literal text



isReadOnly
public boolean isReadOnly(ELContext env)(Code)
Returns true if the expression is read-only.



print
public boolean print(WriteStream out, ELContext env, boolean escapeXml) throws IOException, ELException(Code)
Evaluates directly to the output. The method returns true if the default value should be printed instead.
Parameters:
  out - the output writer
Parameters:
  env - the variable environment
Parameters:
  escapeXml - if true, escape reserved XML true if the object is null, otherwise false



print
public boolean print(JspWriter out, ELContext env, boolean escapeXml) throws IOException, ELException(Code)
Evaluates directly to the output. The method returns true if the default value should be printed instead.
Parameters:
  out - the output writer
Parameters:
  env - the variable environment
Parameters:
  escapeXml - if true, escape reserved XML true if the object is null, otherwise false



printCreate
public void printCreate(WriteStream os) throws IOException(Code)
Generates the code to regenerate the expression.
Parameters:
  os - the stream to the *.java page



printEscaped
public static void printEscaped(WriteStream os, ReadStream is) throws IOException(Code)
Write to the *.java stream escaping Java reserved characters.
Parameters:
  out - the output stream to the *.java code.
Parameters:
  value - the value to be converted.



printEscapedString
public static void printEscapedString(WriteStream os, String string) throws IOException(Code)
Write to the *.java stream escaping Java reserved characters.
Parameters:
  out - the output stream to the *.java code.
Parameters:
  value - the value to be converted.



setProperty
public static void setProperty(Object target, String property, Object value) throws ELException, JspException(Code)



setValue
public void setValue(ELContext env, Object value) throws PropertyNotFoundException, PropertyNotWritableException, ELException(Code)
Evaluates the expression, setting an object.
Parameters:
  env - the variable environment the value of the expression as an object



toBigDecimal
public static BigDecimal toBigDecimal(Object value, ELContext env) throws ELException(Code)
Converts some unknown value to a big decimal
Parameters:
  value - the value to be converted. the BigDecimal-converted value.



toBigInteger
public static BigInteger toBigInteger(Object value, ELContext env) throws ELException(Code)
Converts some unknown value to a big integer
Parameters:
  value - the value to be converted. the BigInteger-converted value.



toBoolean
public static boolean toBoolean(Object value, ELContext env) throws ELException(Code)
Converts some unknown value to a boolean.
Parameters:
  value - the value to be converted. the boolean-converted value.



toCharacter
public static char toCharacter(Object value, ELContext env) throws ELException(Code)
Converts some unknown value to a string.
Parameters:
  value - the value to be converted. the string-converted value.



toDouble
public static double toDouble(Object value, ELContext env) throws ELException(Code)
Converts some unknown value to a double.
Parameters:
  value - the value to be converted. the double-converted value.



toLong
public static long toLong(Object value, ELContext env) throws ELException(Code)
Converts some unknown value to a long.
Parameters:
  value - the value to be converted. the long-converted value.



toStream
public static boolean toStream(JspWriter out, Object value, boolean isEscaped) throws IOException(Code)
Write to the stream.
Parameters:
  out - the output stream
Parameters:
  value - the value to be written. true for null



toStream
public static void toStream(WriteStream out, Object value) throws IOException(Code)
Write to the stream.
Parameters:
  out - the output stream
Parameters:
  value - the value to be written.



toStream
public static void toStream(JspWriter out, Object value) throws IOException(Code)
Write to the stream.
Parameters:
  out - the output stream
Parameters:
  value - the value to be written.



toStreamEscaped
public static void toStreamEscaped(Writer out, Object value) throws IOException(Code)
Write to the stream.
Parameters:
  out - the output stream
Parameters:
  value - the value to be written.



toStreamEscaped
public static void toStreamEscaped(WriteStream out, Object value) throws IOException(Code)
Write to the stream escaping XML reserved characters.
Parameters:
  out - the output stream.
Parameters:
  value - the value to be converted.



toStreamEscaped
public static void toStreamEscaped(Writer out, Reader in) throws IOException(Code)
Write to the stream escaping XML reserved characters.
Parameters:
  out - the output stream.
Parameters:
  value - the value to be converted.



toString
public static String toString(Object value, ELContext env)(Code)
Converts some unknown value to a string.
Parameters:
  value - the value to be converted. the string-converted value.



toString
public static String toString(long value, ELContext env)(Code)
Converts some unknown value to a string.
Parameters:
  value - the value to be converted. the string-converted value.



toString
public static String toString(double value, ELContext env)(Code)
Converts some unknown value to a string.
Parameters:
  value - the value to be converted. the string-converted value.



toString
public static String toString(boolean value, ELContext env)(Code)
Converts some unknown value to a string.
Parameters:
  value - the value to be converted. the string-converted value.



toString
public static String toString(char value, ELContext env)(Code)
Converts some unknown value to a string.
Parameters:
  value - the value to be converted. the string-converted value.



toString
abstract public String toString()(Code)



toStringWithNull
public static String toStringWithNull(Object value, ELContext env)(Code)
Converts some unknown value to a string.
Parameters:
  value - the value to be converted. the string-converted 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.