Java Doc for Operator.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
      jode.expr.Operator

All known Subclasses:   jode.expr.NewArrayOperator,  jode.expr.MonitorEnterOperator,  jode.expr.ConvertOperator,  jode.expr.StringAddOperator,  jode.expr.FieldOperator,  jode.expr.OuterLocalOperator,  jode.expr.ArrayLengthOperator,  jode.expr.IfThenElseOperator,  jode.expr.BinaryOperator,  jode.expr.SimpleOperator,  jode.expr.InstanceOfOperator,  jode.expr.LocalVarOperator,  jode.expr.IIncOperator,  jode.expr.CheckNullOperator,  jode.expr.PopOperator,  jode.expr.StoreInstruction,  jode.expr.CompareUnaryOperator,  jode.expr.MonitorExitOperator,  jode.expr.ConstantArrayOperator,  jode.expr.CompareBinaryOperator,  jode.expr.UnaryOperator,  jode.expr.CheckCastOperator,  jode.expr.NoArgOperator,  jode.expr.CompareToIntOperator,  jode.expr.InvokeOperator,  jode.expr.PrePostFixOperator,  jode.expr.ArrayLoadOperator,
Operator
abstract public class Operator extends Expression (Code)


Field Summary
final public static  intADD_OP
    
final public static  intAND_OP
    
final public static  intASSIGN_OP
    
final public static  intCOMPARE_OP
    
final public static  intDEC_OP
    
final public static  intEQUALS_OP
    
final public static  intGREATEREQ_OP
    
final public static  intGREATER_OP
    
final public static  intINC_OP
    
final public static  intLESSEQ_OP
    
final public static  intLESS_OP
    
final public static  intLOG_AND_OP
    
final public static  intLOG_NOT_OP
    
final public static  intLOG_OR_OP
    
final public static  intNEG_OP
    
final public static  intNOTEQUALS_OP
    
final public static  intOPASSIGN_OP
    
final public static  intSHIFT_OP
    
final public static  intSUB_OP
    
static  StringopString
    
protected  intoperatorIndex
    
 Expression[]subExpressions
    

Constructor Summary
public  Operator(Type type)
    
public  Operator(Type type, int op)
    

Method Summary
public  ExpressionaddOperand(Expression op)
    
public  intcanCombine(CombineableOperator combOp)
     Checks if the given Expression (which must 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 comb)
     Checks if this expression contains a matching load, that matches the given Expression.
Parameters:
  comb - The store expression.
abstract public  voiddumpExpression(TabbedPrintWriter writer)
    
public  booleanequals(Object o)
    
public  voidfillDeclarables(Collection used)
    
public  voidfillInGenSet(Collection in, Collection gen)
    
public  intgetFreeOperandCount()
    
public  OperatorgetOperator()
    
public  intgetOperatorIndex()
    
public  StringgetOperatorString()
    
public  Expression[]getSubExpressions()
    
public  booleanhasSideEffects(Expression expr)
     Checks if the value of the given expression can change, due to side effects in this expression.
public  voidinitOperands(int opcount)
    
public  booleanisConstant()
    
public  booleanisFreeOperator()
     Tells if this is an operator, that doesn't have any subExpression, yet.
public  booleanisFreeOperator(int opcount)
    
public  voidmakeDeclaration(Set done)
    
public  booleanopEquals(Operator o)
    
public  voidsetOperatorIndex(int op)
    
public  voidsetSubExpressions(int i, Expression expr)
    
public  Expressionsimplify()
    
public  booleansubsEquals(Operator other)
    

Field Detail
ADD_OP
final public static int ADD_OP(Code)



AND_OP
final public static int AND_OP(Code)



ASSIGN_OP
final public static int ASSIGN_OP(Code)



COMPARE_OP
final public static int COMPARE_OP(Code)



DEC_OP
final public static int DEC_OP(Code)



EQUALS_OP
final public static int EQUALS_OP(Code)



GREATEREQ_OP
final public static int GREATEREQ_OP(Code)



GREATER_OP
final public static int GREATER_OP(Code)



INC_OP
final public static int INC_OP(Code)



LESSEQ_OP
final public static int LESSEQ_OP(Code)



LESS_OP
final public static int LESS_OP(Code)



LOG_AND_OP
final public static int LOG_AND_OP(Code)



LOG_NOT_OP
final public static int LOG_NOT_OP(Code)



LOG_OR_OP
final public static int LOG_OR_OP(Code)



NEG_OP
final public static int NEG_OP(Code)



NOTEQUALS_OP
final public static int NOTEQUALS_OP(Code)



OPASSIGN_OP
final public static int OPASSIGN_OP(Code)



SHIFT_OP
final public static int SHIFT_OP(Code)



SUB_OP
final public static int SUB_OP(Code)



opString
static String opString(Code)



operatorIndex
protected int operatorIndex(Code)



subExpressions
Expression[] subExpressions(Code)




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



Operator
public Operator(Type type, int op)(Code)




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



canCombine
public int canCombine(CombineableOperator combOp)(Code)
Checks if the given Expression (which must 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.
exception:
  ClassCastException - , if e.getOperator is not a CombineableOperator.



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 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 comb)(Code)
Checks if this expression contains a matching load, that matches the given Expression.
Parameters:
  comb - The store expression. true, iff 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)



equals
public boolean equals(Object o)(Code)



fillDeclarables
public void fillDeclarables(Collection used)(Code)



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



getFreeOperandCount
public int getFreeOperandCount()(Code)



getOperator
public Operator getOperator()(Code)



getOperatorIndex
public int getOperatorIndex()(Code)



getOperatorString
public String getOperatorString()(Code)



getSubExpressions
public Expression[] getSubExpressions()(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.



initOperands
public void initOperands(int opcount)(Code)



isConstant
public boolean isConstant()(Code)



isFreeOperator
public boolean isFreeOperator()(Code)
Tells if this is an operator, that doesn't have any subExpression, yet.



isFreeOperator
public boolean isFreeOperator(int opcount)(Code)
Tells if this is an operator, that doesn't have any subExpression, yet, and that expects opcount operands



makeDeclaration
public void makeDeclaration(Set done)(Code)



opEquals
public boolean opEquals(Operator o)(Code)



setOperatorIndex
public void setOperatorIndex(int op)(Code)



setSubExpressions
public void setSubExpressions(int i, Expression expr)(Code)



simplify
public Expression simplify()(Code)



subsEquals
public boolean subsEquals(Operator other)(Code)



Fields inherited from jode.expr.Expression
public static Expression EMPTYSTRING(Code)(Java Doc)
Operator parent(Code)(Java Doc)
protected Type type(Code)(Java Doc)

Methods inherited from jode.expr.Expression
abstract public Expression addOperand(Expression op)(Code)(Java Doc)
public int canCombine(CombineableOperator combOp)(Code)(Java Doc)
public Expression combine(CombineableOperator comb)(Code)(Java Doc)
public boolean containsConflictingLoad(MatchableOperator op)(Code)(Java Doc)
public boolean containsMatchingLoad(CombineableOperator e)(Code)(Java Doc)
abstract public void dumpExpression(TabbedPrintWriter writer) throws java.io.IOException(Code)(Java Doc)
public void dumpExpression(int options, TabbedPrintWriter writer) throws java.io.IOException(Code)(Java Doc)
public void dumpExpression(TabbedPrintWriter writer, int minPriority) throws java.io.IOException(Code)(Java Doc)
public void fillDeclarables(Collection used)(Code)(Java Doc)
public void fillInGenSet(Collection in, Collection gen)(Code)(Java Doc)
public int getBreakPenalty()(Code)(Java Doc)
abstract public int getFreeOperandCount()(Code)(Java Doc)
public Operator getParent()(Code)(Java Doc)
abstract public int getPriority()(Code)(Java Doc)
public Type getType()(Code)(Java Doc)
public boolean hasSideEffects(Expression expr)(Code)(Java Doc)
public boolean isConstant()(Code)(Java Doc)
public boolean isVoid()(Code)(Java Doc)
public void makeDeclaration(Set done)(Code)(Java Doc)
public void makeInitializer(Type type)(Code)(Java Doc)
public Expression negate()(Code)(Java Doc)
public Expression removeOnetimeLocals()(Code)(Java Doc)
public void setType(Type otherType)(Code)(Java Doc)
public Expression simplify()(Code)(Java Doc)
public Expression simplifyString()(Code)(Java Doc)
public Expression simplifyStringBuffer()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public void updateParentType(Type otherType)(Code)(Java Doc)
abstract public void updateSubTypes()(Code)(Java Doc)
abstract public void updateType()(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.