Java Doc for PatternElement.java in  » Code-Analyzer » findbugs » edu » umd » cs » findbugs » ba » bcp » 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 » Code Analyzer » findbugs » edu.umd.cs.findbugs.ba.bcp 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   edu.umd.cs.findbugs.ba.bcp.PatternElement

All known Subclasses:   edu.umd.cs.findbugs.ba.bcp.SingleInstruction,  edu.umd.cs.findbugs.ba.bcp.Opcode,  edu.umd.cs.findbugs.ba.bcp.Wild,  edu.umd.cs.findbugs.ba.bcp.Invoke,  edu.umd.cs.findbugs.ba.bcp.MatchAny,
PatternElement
abstract public class PatternElement (Code)
A PatternElement is an element of a ByteCodePattern. It potentially matches some number of bytecode instructions.




Method Summary
abstract public  booleanacceptBranch(Edge edge, InstructionHandle source)
     Return whether or not it is acceptable to take the given branch.
protected static  BindingSetaddOrCheckDefinition(String varName, Variable variable, BindingSet bindingSet)
     Add a variable definition to the given BindingSet, or if there is an existing definition, make sure it is consistent with the new definition.
public  booleanallowTrailingEdges()
     Return whether or not this PatternElement may match trailing edges.
public  PatternElementdominatedBy(String dominatedBy)
     Set the label of another pattern element whose first matched instruction must dominate the instruction(s) matched by this element.
public  StringgetDominatedBy()
     Get the label of the pattern element whose first matched instruction must dominate the instruction(s) matched by this element.
public  StringgetLabel()
     Get the label of this PatternElement.
public  PatternElementgetNext()
     Get the next PatternElement.
public  PatternElementlabel(String label)
     Set a label for this PatternElement.
public static  Variablelookup(String varName, BindingSet bindingSet)
     Look up a variable definition in given BindingSet.
abstract public  MatchResultmatch(InstructionHandle handle, ConstantPoolGen cpg, ValueNumberFrame before, ValueNumberFrame after, BindingSet bindingSet)
     Return whether or not this element matches the given instruction with the given Bindings in effect.
abstract public  intmaxOccur()
     Return the maximum number of instructions this PatternElement must match in the ByteCodePattern.
abstract public  intminOccur()
     Return the minimum number of instructions this PatternElement must match in the ByteCodePattern.
public  PatternElementsetAllowTrailingEdges(boolean allowTrailingEdges)
     Set whether or not this PatternElement allows trailing edges to be matched. By default, trailing edges may be matched.
public  voidsetIndex(int index)
     Set the index.
public  voidsetNext(PatternElement patternElement)
     Set the next PatternElement.
public  StringtoString()
    



Method Detail
acceptBranch
abstract public boolean acceptBranch(Edge edge, InstructionHandle source)(Code)
Return whether or not it is acceptable to take the given branch.
Parameters:
  edge - the Edge representing the branch
Parameters:
  source - the source instruction of the branch true if the Edge is acceptable, false if not



addOrCheckDefinition
protected static BindingSet addOrCheckDefinition(String varName, Variable variable, BindingSet bindingSet)(Code)
Add a variable definition to the given BindingSet, or if there is an existing definition, make sure it is consistent with the new definition.
Parameters:
  varName - the name of the variable
Parameters:
  variable - the Variable which should be added or checked for consistency
Parameters:
  bindingSet - the existing set of bindings the updated BindingSet (if the variable is consistent with theprevious bindings), or null if the new variable is inconsistent withthe previous bindings



allowTrailingEdges
public boolean allowTrailingEdges()(Code)
Return whether or not this PatternElement may match trailing edges.



dominatedBy
public PatternElement dominatedBy(String dominatedBy)(Code)
Set the label of another pattern element whose first matched instruction must dominate the instruction(s) matched by this element.



getDominatedBy
public String getDominatedBy()(Code)
Get the label of the pattern element whose first matched instruction must dominate the instruction(s) matched by this element.



getLabel
public String getLabel()(Code)
Get the label of this PatternElement. the label, or null if the PatternElement is not labeled



getNext
public PatternElement getNext()(Code)
Get the next PatternElement.



label
public PatternElement label(String label)(Code)
Set a label for this PatternElement.
Parameters:
  label - the label this object



lookup
public static Variable lookup(String varName, BindingSet bindingSet)(Code)
Look up a variable definition in given BindingSet.
Parameters:
  varName - the name of the variable
Parameters:
  bindingSet - the BindingSet to look in the Variable, or null if no Variable is bound to the name



match
abstract public MatchResult match(InstructionHandle handle, ConstantPoolGen cpg, ValueNumberFrame before, ValueNumberFrame after, BindingSet bindingSet) throws DataflowAnalysisException(Code)
Return whether or not this element matches the given instruction with the given Bindings in effect.
Parameters:
  handle - the instruction
Parameters:
  cpg - the ConstantPoolGen from the method
Parameters:
  before - the ValueNumberFrame representing values in the Java stack framejust before the execution of the instruction
Parameters:
  after - the ValueNumberFrame representing values in the Java stack framejust after the execution of the instruction
Parameters:
  bindingSet - the set of Bindings if the match is successful, returns a MatchResult with the PatternElementand BindingSet; if the match is not successful, returns null



maxOccur
abstract public int maxOccur()(Code)
Return the maximum number of instructions this PatternElement must match in the ByteCodePattern.



minOccur
abstract public int minOccur()(Code)
Return the minimum number of instructions this PatternElement must match in the ByteCodePattern.



setAllowTrailingEdges
public PatternElement setAllowTrailingEdges(boolean allowTrailingEdges)(Code)
Set whether or not this PatternElement allows trailing edges to be matched. By default, trailing edges may be matched. When this value is set to false, it ensures that the successor instruction must be in the same basic block.
Parameters:
  allowTrailingEdges - true if trailing edges may be matched,false if trailing edges will never be matched



setIndex
public void setIndex(int index)(Code)
Set the index. This is just for debugging.



setNext
public void setNext(PatternElement patternElement)(Code)
Set the next PatternElement.



toString
public String toString()(Code)



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.