Java Doc for Expression.java in  » Development » jode » jode » expr » 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 » Development » jode » jode.expr 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   jode.expr.Expression

All known Subclasses:   jode.expr.NopOperator,  jode.expr.Operator,
Expression
abstract public class Expression (Code)


Field Summary
public static  ExpressionEMPTYSTRING
    
 Operatorparent
    
protected  Typetype
    

Constructor Summary
public  Expression(Type type)
    

Method Summary
abstract public  ExpressionaddOperand(Expression op)
    
public  intcanCombine(CombineableOperator combOp)
     Checks if the given Expression (which should be a CombineableOperator) can be combined into this expression.
Parameters:
  e - The store expression, must be of type void.
public  Expressioncombine(CombineableOperator comb)
     Combines the given Expression (which should be a StoreInstruction) into this expression.
public  booleancontainsConflictingLoad(MatchableOperator op)
     Checks if this expression contains a conflicting load, that matches the given CombineableOperator.
public  booleancontainsMatchingLoad(CombineableOperator e)
     Checks if this expression contains a load, that matches the given CombineableOperator (which must be an Operator)
Parameters:
  e - The store expression.
abstract public  voiddumpExpression(TabbedPrintWriter writer)
    
public  voiddumpExpression(int options, TabbedPrintWriter writer)
    
public  voiddumpExpression(TabbedPrintWriter writer, int minPriority)
    
public  voidfillDeclarables(Collection used)
    
public  voidfillInGenSet(Collection in, Collection gen)
    
public  intgetBreakPenalty()
     Get the penalty for splitting up this operator.
abstract public  intgetFreeOperandCount()
     Get the number of operands.
public  OperatorgetParent()
    
abstract public  intgetPriority()
     Get priority of the operator.
public  TypegetType()
    
public  booleanhasSideEffects(Expression expr)
     Checks if the value of the given expression can change, due to side effects in this expression.
public  booleanisConstant()
    
public  booleanisVoid()
    
public  voidmakeDeclaration(Set done)
    
public  voidmakeInitializer(Type type)
    
public  Expressionnegate()
    
public  ExpressionremoveOnetimeLocals()
     This method should remove local variables that are only written and read one time directly after another.
public  voidsetType(Type otherType)
    
public  Expressionsimplify()
    
public  ExpressionsimplifyString()
    
public  ExpressionsimplifyStringBuffer()
    
public  StringtoString()
    
public  voidupdateParentType(Type otherType)
    
abstract public  voidupdateSubTypes()
     Tells an expression that an outer expression has changed our type and that the inner types should be recalculated.
abstract public  voidupdateType()
     Tells an expression that an inner expression may have changed and that the type should be recalculated.

Field Detail
EMPTYSTRING
public static Expression EMPTYSTRING(Code)



parent
Operator parent(Code)



type
protected Type type(Code)




Constructor Detail
Expression
public Expression(Type type)(Code)




Method Detail
addOperand
abstract public Expression addOperand(Expression op)(Code)



canCombine
public int canCombine(CombineableOperator combOp)(Code)
Checks if the given Expression (which should be a CombineableOperator) can be combined into this expression.
Parameters:
  e - The store expression, must be of type void. 1, if it can, 0, if no match was found and -1, if aconflict was found. You may wish to check for >0.



combine
public Expression combine(CombineableOperator comb)(Code)
Combines the given Expression (which should be a StoreInstruction) into this expression. You must only call this if canCombine returns the value 1.
Parameters:
  e - The store expression, the operator must be a CombineableOperator. The combined expression.
exception:
  ClassCastException - , if e.getOperator is not a CombineableOperator.



containsConflictingLoad
public boolean containsConflictingLoad(MatchableOperator op)(Code)
Checks if this expression contains a conflicting load, that matches the given CombineableOperator. The sub expressions are not checked.
Parameters:
  op - The combineable operator. if this expression contains a matching load.



containsMatchingLoad
public boolean containsMatchingLoad(CombineableOperator e)(Code)
Checks if this expression contains a load, that matches the given CombineableOperator (which must be an Operator)
Parameters:
  e - The store expression. if this expression contains a matching load.
exception:
  ClassCastException - , if e.getOperator is not a CombineableOperator.



dumpExpression
abstract public void dumpExpression(TabbedPrintWriter writer) throws java.io.IOException(Code)



dumpExpression
public void dumpExpression(int options, TabbedPrintWriter writer) throws java.io.IOException(Code)



dumpExpression
public void dumpExpression(TabbedPrintWriter writer, int minPriority) throws java.io.IOException(Code)



fillDeclarables
public void fillDeclarables(Collection used)(Code)



fillInGenSet
public void fillInGenSet(Collection in, Collection gen)(Code)



getBreakPenalty
public int getBreakPenalty()(Code)
Get the penalty for splitting up this operator.



getFreeOperandCount
abstract public int getFreeOperandCount()(Code)
Get the number of operands. The number of stack entries this expression needs.



getParent
public Operator getParent()(Code)



getPriority
abstract public int getPriority()(Code)
Get priority of the operator. Currently this priorities are known:
  • 1000 constant
  • 950 new, .(field access), []
  • 900 new[]
  • 800 ++,-- (post)
  • 700 ++,--(pre), +,-(unary), ~, !, cast
  • 650 *,/, %
  • 610 +,-
  • 600 <<, >>, >>>
  • 550 >, <, >=, <=, instanceof
  • 500 ==, !=
  • 450 &
  • 420 ^
  • 410 |
  • 350 &&
  • 310 ||
  • 200 ?:
  • 100 =, +=, -=, etc.



getType
public Type getType()(Code)



hasSideEffects
public boolean hasSideEffects(Expression expr)(Code)
Checks if the value of the given expression can change, due to side effects in this expression. If this returns false, the expression can safely be moved behind the current expresion.
Parameters:
  expr - the expression that should not change.



isConstant
public boolean isConstant()(Code)



isVoid
public boolean isVoid()(Code)



makeDeclaration
public void makeDeclaration(Set done)(Code)



makeInitializer
public void makeInitializer(Type type)(Code)



negate
public Expression negate()(Code)



removeOnetimeLocals
public Expression removeOnetimeLocals()(Code)
This method should remove local variables that are only written and read one time directly after another.
In this case this is a non void LocalStoreOperator, whose local isn't used in other places. an expression where the locals are removed.



setType
public void setType(Type otherType)(Code)



simplify
public Expression simplify()(Code)



simplifyString
public Expression simplifyString()(Code)



simplifyStringBuffer
public Expression simplifyStringBuffer()(Code)



toString
public String toString()(Code)



updateParentType
public void updateParentType(Type otherType)(Code)



updateSubTypes
abstract public void updateSubTypes()(Code)
Tells an expression that an outer expression has changed our type and that the inner types should be recalculated.



updateType
abstract public void updateType()(Code)
Tells an expression that an inner expression may have changed and that the type should be recalculated. This may call setType of the caller again.



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.