Java Doc for Expression.java in  » IDE-Eclipse » jdt » org » eclipse » jdt » core » dom » 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 » IDE Eclipse » jdt » org.eclipse.jdt.core.dom 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.eclipse.jdt.core.dom.ASTNode
      org.eclipse.jdt.core.dom.Expression

All known Subclasses:   org.eclipse.jdt.core.dom.ArrayAccess,  org.eclipse.jdt.core.dom.ConditionalExpression,  org.eclipse.jdt.core.dom.InfixExpression,  org.eclipse.jdt.core.dom.NumberLiteral,  org.eclipse.jdt.core.dom.ArrayCreation,  org.eclipse.jdt.core.dom.InstanceofExpression,  org.eclipse.jdt.core.dom.PostfixExpression,  org.eclipse.jdt.core.dom.StringLiteral,  org.eclipse.jdt.core.dom.BooleanLiteral,  org.eclipse.jdt.core.dom.ClassInstanceCreation,  org.eclipse.jdt.core.dom.PrefixExpression,  org.eclipse.jdt.core.dom.MethodInvocation,  org.eclipse.jdt.core.dom.ArrayInitializer,  org.eclipse.jdt.core.dom.CharacterLiteral,  org.eclipse.jdt.core.dom.VariableDeclarationExpression,  org.eclipse.jdt.core.dom.NullLiteral,  org.eclipse.jdt.core.dom.CastExpression,  org.eclipse.jdt.core.dom.ParenthesizedExpression,  org.eclipse.jdt.core.dom.SuperMethodInvocation,  org.eclipse.jdt.core.dom.SuperFieldAccess,  org.eclipse.jdt.core.dom.ThisExpression,  org.eclipse.jdt.core.dom.TypeLiteral,  org.eclipse.jdt.core.dom.FieldAccess,  org.eclipse.jdt.core.dom.Assignment,  org.eclipse.jdt.core.dom.Name,  org.eclipse.jdt.core.dom.Annotation,
Expression
abstract public class Expression extends ASTNode (Code)
Abstract base class of AST nodes that represent expressions. There are several kinds of expressions.

 Expression:
 Name
 IntegerLiteral (includes decimal, hex, and octal forms; and long)
 FloatingPointLiteral (includes both float and double)
 CharacterLiteral
 NullLiteral
 BooleanLiteral
 StringLiteral
 TypeLiteral
 ThisExpression
 SuperFieldAccess
 FieldAccess
 Assignment
 ParenthesizedExpression
 ClassInstanceCreation
 ArrayCreation
 ArrayInitializer
 MethodInvocation
 SuperMethodInvocation
 ArrayAccess
 InfixExpression
 InstanceofExpression
 ConditionalExpression
 PostfixExpression
 PrefixExpression
 CastExpression
 VariableDeclarationExpression
 


since:
   2.0



Constructor Summary
 Expression(AST ast)
     Creates a new AST node for an expression owned by the given AST.

N.B.


Method Summary
final public  booleanresolveBoxing()
     Returns whether this expression node is the site of a boxing conversion (JLS3 5.1.7).
final public  ObjectresolveConstantExpressionValue()
     Resolves and returns the compile-time constant expression value as specified in JLS2 15.28, if this expression has one.
final public  ITypeBindingresolveTypeBinding()
     Resolves and returns the binding for the type of this expression.
final public  booleanresolveUnboxing()
     Returns whether this expression node is the site of an unboxing conversion (JLS3 5.1.8).


Constructor Detail
Expression
Expression(AST ast)(Code)
Creates a new AST node for an expression owned by the given AST.

N.B. This constructor is package-private.


Parameters:
  ast - the AST that is to own this node




Method Detail
resolveBoxing
final public boolean resolveBoxing()(Code)
Returns whether this expression node is the site of a boxing conversion (JLS3 5.1.7). This information is available only when bindings are requested when the AST is being built. true if this expression is the site of aboxing conversion, or false if either no boxing conversionis involved or if bindings were not requested when the AST was created
since:
   3.1



resolveConstantExpressionValue
final public Object resolveConstantExpressionValue()(Code)
Resolves and returns the compile-time constant expression value as specified in JLS2 15.28, if this expression has one. Constant expression values are unavailable unless bindings are requested when the AST is being built. If the type of the value is a primitive type, the result is the boxed equivalent (i.e., int returned as an Integer); if the type of the value is String, the result is the string itself. If the expression does not have a compile-time constant expression value, the result is null.

Resolving constant expressions takes into account the value of simple and qualified names that refer to constant variables (JLS2 4.12.4).

Note 1: enum constants are not considered constant expressions. The result is always null for these.

Note 2: Compile-time constant expressions cannot denote null. So technically NullLiteral nodes are not constant expressions. The result is null for these nonetheless.

the constant expression value, or null if thisexpression has no constant expression value or if bindings were notrequested when the AST was created
since:
   3.1



resolveTypeBinding
final public ITypeBinding resolveTypeBinding()(Code)
Resolves and returns the binding for the type of this expression.

Note that bindings are generally unavailable unless requested when the AST is being built.

the binding for the type of this expression, ornull if the type cannot be resolved



resolveUnboxing
final public boolean resolveUnboxing()(Code)
Returns whether this expression node is the site of an unboxing conversion (JLS3 5.1.8). This information is available only when bindings are requested when the AST is being built. true if this expression is the site of anunboxing conversion, or false if either no unboxingconversion is involved or if bindings were not requested when theAST was created
since:
   3.1



Fields inherited from org.eclipse.jdt.core.dom.ASTNode
final public static int ANNOTATION_TYPE_DECLARATION(Code)(Java Doc)
final public static int ANNOTATION_TYPE_MEMBER_DECLARATION(Code)(Java Doc)
final public static int ANONYMOUS_CLASS_DECLARATION(Code)(Java Doc)
final public static int ARRAY_ACCESS(Code)(Java Doc)
final public static int ARRAY_CREATION(Code)(Java Doc)
final public static int ARRAY_INITIALIZER(Code)(Java Doc)
final public static int ARRAY_TYPE(Code)(Java Doc)
final public static int ASSERT_STATEMENT(Code)(Java Doc)
final public static int ASSIGNMENT(Code)(Java Doc)
final static int BASE_NODE_SIZE(Code)(Java Doc)
final public static int BLOCK(Code)(Java Doc)
final public static int BLOCK_COMMENT(Code)(Java Doc)
final public static int BOOLEAN_LITERAL(Code)(Java Doc)
final public static int BREAK_STATEMENT(Code)(Java Doc)
final public static int CAST_EXPRESSION(Code)(Java Doc)
final public static int CATCH_CLAUSE(Code)(Java Doc)
final public static int CHARACTER_LITERAL(Code)(Java Doc)
final public static int CLASS_INSTANCE_CREATION(Code)(Java Doc)
final public static int COMPILATION_UNIT(Code)(Java Doc)
final public static int CONDITIONAL_EXPRESSION(Code)(Java Doc)
final public static int CONSTRUCTOR_INVOCATION(Code)(Java Doc)
final public static int CONTINUE_STATEMENT(Code)(Java Doc)
final static boolean CYCLE_RISK(Code)(Java Doc)
final public static int DO_STATEMENT(Code)(Java Doc)
final public static int EMPTY_STATEMENT(Code)(Java Doc)
final public static int ENHANCED_FOR_STATEMENT(Code)(Java Doc)
final public static int ENUM_CONSTANT_DECLARATION(Code)(Java Doc)
final public static int ENUM_DECLARATION(Code)(Java Doc)
final public static int EXPRESSION_STATEMENT(Code)(Java Doc)
final public static int FIELD_ACCESS(Code)(Java Doc)
final public static int FIELD_DECLARATION(Code)(Java Doc)
final public static int FOR_STATEMENT(Code)(Java Doc)
final static int HEADERS(Code)(Java Doc)
final public static int IF_STATEMENT(Code)(Java Doc)
final public static int IMPORT_DECLARATION(Code)(Java Doc)
final public static int INFIX_EXPRESSION(Code)(Java Doc)
final public static int INITIALIZER(Code)(Java Doc)
final public static int INSTANCEOF_EXPRESSION(Code)(Java Doc)
final public static int JAVADOC(Code)(Java Doc)
final public static int LABELED_STATEMENT(Code)(Java Doc)
final public static int LINE_COMMENT(Code)(Java Doc)
final public static int MALFORMED(Code)(Java Doc)
final static boolean MANDATORY(Code)(Java Doc)
final public static int MARKER_ANNOTATION(Code)(Java Doc)
final public static int MEMBER_REF(Code)(Java Doc)
final public static int MEMBER_VALUE_PAIR(Code)(Java Doc)
final public static int METHOD_DECLARATION(Code)(Java Doc)
final public static int METHOD_INVOCATION(Code)(Java Doc)
final public static int METHOD_REF(Code)(Java Doc)
final public static int METHOD_REF_PARAMETER(Code)(Java Doc)
final public static int MODIFIER(Code)(Java Doc)
final public static int NORMAL_ANNOTATION(Code)(Java Doc)
final static boolean NO_CYCLE_RISK(Code)(Java Doc)
final public static int NULL_LITERAL(Code)(Java Doc)
final public static int NUMBER_LITERAL(Code)(Java Doc)
final static boolean OPTIONAL(Code)(Java Doc)
final public static int ORIGINAL(Code)(Java Doc)
final public static int PACKAGE_DECLARATION(Code)(Java Doc)
final public static int PARAMETERIZED_TYPE(Code)(Java Doc)
final public static int PARENTHESIZED_EXPRESSION(Code)(Java Doc)
final public static int POSTFIX_EXPRESSION(Code)(Java Doc)
final public static int PREFIX_EXPRESSION(Code)(Java Doc)
final public static int PRIMITIVE_TYPE(Code)(Java Doc)
final public static int PROTECT(Code)(Java Doc)
final public static int QUALIFIED_NAME(Code)(Java Doc)
final public static int QUALIFIED_TYPE(Code)(Java Doc)
final public static int RECOVERED(Code)(Java Doc)
final public static int RETURN_STATEMENT(Code)(Java Doc)
final public static int SIMPLE_NAME(Code)(Java Doc)
final public static int SIMPLE_TYPE(Code)(Java Doc)
final public static int SINGLE_MEMBER_ANNOTATION(Code)(Java Doc)
final public static int SINGLE_VARIABLE_DECLARATION(Code)(Java Doc)
final public static int STRING_LITERAL(Code)(Java Doc)
final public static int SUPER_CONSTRUCTOR_INVOCATION(Code)(Java Doc)
final public static int SUPER_FIELD_ACCESS(Code)(Java Doc)
final public static int SUPER_METHOD_INVOCATION(Code)(Java Doc)
final public static int SWITCH_CASE(Code)(Java Doc)
final public static int SWITCH_STATEMENT(Code)(Java Doc)
final public static int SYNCHRONIZED_STATEMENT(Code)(Java Doc)
final public static int TAG_ELEMENT(Code)(Java Doc)
final public static int TEXT_ELEMENT(Code)(Java Doc)
final public static int THIS_EXPRESSION(Code)(Java Doc)
final public static int THROW_STATEMENT(Code)(Java Doc)
final public static int TRY_STATEMENT(Code)(Java Doc)
final public static int TYPE_DECLARATION(Code)(Java Doc)
final public static int TYPE_DECLARATION_STATEMENT(Code)(Java Doc)
final public static int TYPE_LITERAL(Code)(Java Doc)
final public static int TYPE_PARAMETER(Code)(Java Doc)
final public static int VARIABLE_DECLARATION_EXPRESSION(Code)(Java Doc)
final public static int VARIABLE_DECLARATION_FRAGMENT(Code)(Java Doc)
final public static int VARIABLE_DECLARATION_STATEMENT(Code)(Java Doc)
final public static int WHILE_STATEMENT(Code)(Java Doc)
final public static int WILDCARD_TYPE(Code)(Java Doc)
final AST ast(Code)(Java Doc)
int typeAndFlags(Code)(Java Doc)

Methods inherited from org.eclipse.jdt.core.dom.ASTNode
final public void accept(ASTVisitor visitor)(Code)(Java Doc)
abstract void accept0(ASTVisitor visitor)(Code)(Java Doc)
final void acceptChild(ASTVisitor visitor, ASTNode child)(Code)(Java Doc)
final void acceptChildren(ASTVisitor visitor, ASTNode.NodeList children)(Code)(Java Doc)
static void addProperty(StructuralPropertyDescriptor property, List propertyList)(Code)(Java Doc)
void appendDebugString(StringBuffer buffer)(Code)(Java Doc)
final void appendPrintString(StringBuffer buffer)(Code)(Java Doc)
final void checkModifiable()(Code)(Java Doc)
static void checkNewChild(ASTNode node, ASTNode newChild, boolean cycleCheck, Class nodeType)(Code)(Java Doc)
final ASTNode clone(AST target)(Code)(Java Doc)
abstract ASTNode clone0(AST target)(Code)(Java Doc)
public static ASTNode copySubtree(AST target, ASTNode node)(Code)(Java Doc)
public static List copySubtrees(AST target, List nodes)(Code)(Java Doc)
static void createPropertyList(Class nodeClass, List propertyList)(Code)(Java Doc)
final public void delete()(Code)(Java Doc)
final public boolean equals(Object obj)(Code)(Java Doc)
final public AST getAST()(Code)(Java Doc)
final public int getFlags()(Code)(Java Doc)
final public int getLength()(Code)(Java Doc)
final public StructuralPropertyDescriptor getLocationInParent()(Code)(Java Doc)
final public int getNodeType()(Code)(Java Doc)
abstract int getNodeType0()(Code)(Java Doc)
final public ASTNode getParent()(Code)(Java Doc)
final public Object getProperty(String propertyName)(Code)(Java Doc)
final public ASTNode getRoot()(Code)(Java Doc)
final public int getStartPosition()(Code)(Java Doc)
final public Object getStructuralProperty(StructuralPropertyDescriptor property)(Code)(Java Doc)
final public int hashCode()(Code)(Java Doc)
List internalGetChildListProperty(ChildListPropertyDescriptor property)(Code)(Java Doc)
boolean internalGetSetBooleanProperty(SimplePropertyDescriptor property, boolean get, boolean value)(Code)(Java Doc)
ASTNode internalGetSetChildProperty(ChildPropertyDescriptor property, boolean get, ASTNode child)(Code)(Java Doc)
int internalGetSetIntProperty(SimplePropertyDescriptor property, boolean get, int value)(Code)(Java Doc)
Object internalGetSetObjectProperty(SimplePropertyDescriptor property, boolean get, Object value)(Code)(Java Doc)
abstract List internalStructuralPropertiesForType(int apiLevel)(Code)(Java Doc)
abstract int memSize()(Code)(Java Doc)
public static Class nodeClassForType(int nodeType)(Code)(Java Doc)
final void postLazyInit(ASTNode newChild, ChildPropertyDescriptor property)(Code)(Java Doc)
final void postReplaceChild(ASTNode oldChild, ASTNode newChild, ChildPropertyDescriptor property)(Code)(Java Doc)
final void postValueChange(SimplePropertyDescriptor property)(Code)(Java Doc)
final void preLazyInit()(Code)(Java Doc)
final void preReplaceChild(ASTNode oldChild, ASTNode newChild, ChildPropertyDescriptor property)(Code)(Java Doc)
final void preValueChange(SimplePropertyDescriptor property)(Code)(Java Doc)
final public Map properties()(Code)(Java Doc)
static List reapPropertyList(List propertyList)(Code)(Java Doc)
final public void setFlags(int flags)(Code)(Java Doc)
final void setParent(ASTNode parent, StructuralPropertyDescriptor property)(Code)(Java Doc)
final public void setProperty(String propertyName, Object data)(Code)(Java Doc)
final public void setSourceRange(int startPosition, int length)(Code)(Java Doc)
final public void setStructuralProperty(StructuralPropertyDescriptor property, Object value)(Code)(Java Doc)
final String standardToString()(Code)(Java Doc)
static int stringSize(String string)(Code)(Java Doc)
final public List structuralPropertiesForType()(Code)(Java Doc)
final public int subtreeBytes()(Code)(Java Doc)
final public boolean subtreeMatch(ASTMatcher matcher, Object other)(Code)(Java Doc)
abstract boolean subtreeMatch0(ASTMatcher matcher, Object other)(Code)(Java Doc)
final void supportedOnlyIn2()(Code)(Java Doc)
final public String toString()(Code)(Java Doc)
abstract int treeSize()(Code)(Java Doc)
final void unsupportedIn2()(Code)(Java Doc)

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.