Java Doc for CodeVertex.java in  » Test-Coverage » Quilt » org » quilt » cl » 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 » Test Coverage » Quilt » org.quilt.cl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.quilt.graph.Vertex
      org.quilt.cl.CodeVertex

All known Subclasses:   org.quilt.cover.stmt.CounterVertex,
CodeVertex
public class CodeVertex extends Vertex (Code)
A Vertex extended to carry the initial bytecode offset, line number, and an instruction list.
author:
   Jim Dixon


Field Summary
protected  InstructionconnInst_
     Instruction connecting this vertex to other(s).
protected  intendLine_
    
protected  InstructionListilist
    
protected  intpos
    
protected  intstartLine_
     Line number in source code corresponding to first instruction, or if there is no such instruction, of the connecting instruction.

Constructor Summary
public  CodeVertex(ControlFlowGraph g)
     Create a code vertex with default bytecode offset, line number, empty instruction list, and no label.
public  CodeVertex(ControlFlowGraph g, int position)
     Create a code vertex, specifying a non-negative bytecode offset.
public  CodeVertex(ControlFlowGraph g, String l)
    

Method Summary
public  InstructiongetConnInst()
     Get connecting instruction.
public  intgetEndLine()
     Get the line number in source code corresponding to the connecting instruction or last instruction in the block.
public  InstructionListgetInstructionList()
     Get a reference to the InstructionList carried by the vertex.
public  intgetPosition()
     Get the bytecode offset of the first instruction.
public  intgetStartLine()
     Get the source code line number of the first instruction in a code vertex.
public  voidmoveGoto(CodeVertex target)
     Move this code vertex's Goto to another code vertex.
public  voidsetConnInst(Instruction i)
     Set the connecting instruction for this vertex.
public  voidsetEndLine(int n)
     Set the source line number of the connecting instruction, or of the last line number in the block if there is no connecting instruction.
public  voidsetPos(int position)
     Set the bytecode offset for the first instruction.
public  voidsetStartLine(int n)
     Set the source code line number.
public  StringtoString()
    
public  StringtoString(boolean b)
     Optionally more verbose method.
Parameters:
  b - If true, add label (if any) and instruction list.

Field Detail
connInst_
protected Instruction connInst_(Code)
Instruction connecting this vertex to other(s).



endLine_
protected int endLine_(Code)
Line number in source code corresponding to the connecting instruction, or if there is no such instruction, to the last instruction in the block



ilist
protected InstructionList ilist(Code)
the bytecode iteself



pos
protected int pos(Code)
initial offset of first instruction in bytecode



startLine_
protected int startLine_(Code)
Line number in source code corresponding to first instruction, or if there is no such instruction, of the connecting instruction.




Constructor Detail
CodeVertex
public CodeVertex(ControlFlowGraph g)(Code)
Create a code vertex with default bytecode offset, line number, empty instruction list, and no label.
Parameters:
  g - Graph which the vertex belongs to.



CodeVertex
public CodeVertex(ControlFlowGraph g, int position)(Code)
Create a code vertex, specifying a non-negative bytecode offset.
Parameters:
  g - Graph which the vertex belongs to.
Parameters:
  position - Offset of the first instruction in the bytecode.



CodeVertex
public CodeVertex(ControlFlowGraph g, String l)(Code)
Create a code vertex, specifying a label
Parameters:
  g - Graph which the vertex belongs to.
Parameters:
  l - The String label applied to the vertex.




Method Detail
getConnInst
public Instruction getConnInst()(Code)
Get connecting instruction.



getEndLine
public int getEndLine()(Code)
Get the line number in source code corresponding to the connecting instruction or last instruction in the block.



getInstructionList
public InstructionList getInstructionList()(Code)
Get a reference to the InstructionList carried by the vertex. This is a doubly indirect reference to the first instruction in the list. Instruction list.



getPosition
public int getPosition()(Code)
Get the bytecode offset of the first instruction. The initial bytecode offset of the first instructioncarried by the vertex (excluding any connection instruction.



getStartLine
public int getStartLine()(Code)
Get the source code line number of the first instruction in a code vertex. Non-negative integer or -1, meaning no line number assigned.



moveGoto
public void moveGoto(CodeVertex target)(Code)
Move this code vertex's Goto to another code vertex. The second vertex will be the target on the otherEdge from this vertex. This vertex has a BinaryConnector. The second vertex has a UnaryConnector. The goto instruction does NOT point to the target. The target is some sort of instrumentation being inserted into the graph.



setConnInst
public void setConnInst(Instruction i)(Code)
Set the connecting instruction for this vertex.



setEndLine
public void setEndLine(int n)(Code)
Set the source line number of the connecting instruction, or of the last line number in the block if there is no connecting instruction.
Parameters:
  n - Source code end line number.



setPos
public void setPos(int position)(Code)
Set the bytecode offset for the first instruction. XXX Should rename this to setPosition to match the get method.
Parameters:
  position - A non-negative integer representing the bytecodeposition of the first instruction.



setStartLine
public void setStartLine(int n)(Code)
Set the source code line number.
Parameters:
  n - Source code line number.



toString
public String toString()(Code)
Less verbose toString. Graph index and Vertex index in a neatly formatted String,not* newline-terminated.



toString
public String toString(boolean b)(Code)
Optionally more verbose method.
Parameters:
  b - If true, add label (if any) and instruction list. A neatly formatted String.



Fields inherited from org.quilt.graph.Vertex
protected Connector connector(Code)(Java Doc)
protected Directed graph(Code)(Java Doc)
protected int index(Code)(Java Doc)
protected String label_(Code)(Java Doc)

Methods inherited from org.quilt.graph.Vertex
public boolean above(Directed g)(Code)(Java Doc)
public static void checkForNull(Object o, String what)(Code)(Java Doc)
public Connector getConnector()(Code)(Java Doc)
public Edge getEdge()(Code)(Java Doc)
public Directed getGraph()(Code)(Java Doc)
public int getIndex()(Code)(Java Doc)
public String getLabel()(Code)(Java Doc)
public Vertex getTarget()(Code)(Java Doc)
public Edge makeBinary()(Code)(Java Doc)
public ComplexConnector makeComplex(int n)(Code)(Java Doc)
public MultiConnector makeMulti(int n)(Code)(Java Doc)
public void setConnector(Connector c)(Code)(Java Doc)
public void setLabel(String s)(Code)(Java Doc)
public String toString()(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.