Java Doc for SimpleNode.java in  » UML » jrefactory » net » sourceforge » jrefactory » ast » 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 » UML » jrefactory » net.sourceforge.jrefactory.ast 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.sourceforge.jrefactory.ast.SimpleNode

All known Subclasses:   net.sourceforge.jrefactory.ast.ASTShiftExpression,  net.sourceforge.jrefactory.ast.ASTInterfaceBody,  net.sourceforge.jrefactory.ast.ASTLocalVariableDeclaration,  net.sourceforge.jrefactory.ast.ASTAnnotation,  net.sourceforge.jrefactory.ast.ASTJSPBody,  net.sourceforge.jrefactory.ast.ASTArrayDimsAndInits,  net.sourceforge.jrefactory.ast.ASTAllocationExpression,  net.sourceforge.jrefactory.ast.ASTPreDecrementExpression,  net.sourceforge.jrefactory.ast.ASTActualTypeArgument,  net.sourceforge.jrefactory.ast.ASTBlock,  net.sourceforge.jrefactory.ast.ASTInterfaceMemberDeclaration,  net.sourceforge.jrefactory.ast.ASTForUpdate,  net.sourceforge.jrefactory.ast.ASTVariableDeclaratorId,  net.sourceforge.jrefactory.ast.ASTTypeParameterList,  net.sourceforge.jrefactory.ast.ASTConditionalOrExpression,  net.sourceforge.jrefactory.ast.ASTAssertionStatement,  net.sourceforge.jrefactory.ast.ASTAndExpression,  net.sourceforge.jrefactory.ast.AccessNode,  net.sourceforge.jrefactory.ast.NamedNode,  net.sourceforge.jrefactory.ast.ASTBlockStatement,  net.sourceforge.jrefactory.ast.ASTVariableDeclarator,  net.sourceforge.jrefactory.ast.ASTSwitchLabel,  net.sourceforge.jrefactory.ast.ASTCastExpression,  net.sourceforge.jrefactory.ast.ASTClassBody,  net.sourceforge.jrefactory.ast.ASTAdditiveExpression,  net.sourceforge.jrefactory.ast.ASTMemberValue,  net.sourceforge.jrefactory.ast.ASTTypeDeclaration,  net.sourceforge.jrefactory.ast.ASTStatementExpressionList,  net.sourceforge.jrefactory.ast.ASTIfStatement,  net.sourceforge.jrefactory.ast.ASTEqualityExpression,  net.sourceforge.jrefactory.ast.ASTArrayInitializer,  net.sourceforge.jrefactory.ast.ASTTypeArguments,  net.sourceforge.jrefactory.ast.ASTResultType,  net.sourceforge.jrefactory.ast.ASTDoStatement,  net.sourceforge.jrefactory.ast.ASTArgumentList,  net.sourceforge.jrefactory.ast.ASTInitializer,  net.sourceforge.jrefactory.ast.ASTReferenceTypeList,  net.sourceforge.jrefactory.ast.ASTPrimaryExpression,  net.sourceforge.jrefactory.ast.ASTFormalParameter,  net.sourceforge.jrefactory.ast.ASTThrowStatement,  net.sourceforge.jrefactory.ast.ASTForInit,  net.sourceforge.jrefactory.ast.ASTForStatement,  net.sourceforge.jrefactory.ast.ASTMemberValueArrayInitializer,  net.sourceforge.jrefactory.ast.ASTName,  net.sourceforge.jrefactory.ast.ASTWhileStatement,  net.sourceforge.jrefactory.ast.ASTReturnStatement,  net.sourceforge.jrefactory.ast.ASTSynchronizedStatement,  net.sourceforge.jrefactory.ast.ASTPreIncrementExpression,  net.sourceforge.jrefactory.ast.ASTExpression,  net.sourceforge.jrefactory.ast.ASTNameList,  net.sourceforge.jrefactory.ast.ASTImportDeclaration,  net.sourceforge.jrefactory.ast.ASTTryStatement,  net.sourceforge.jrefactory.ast.ASTMultiplicativeExpression,  net.sourceforge.jrefactory.ast.ASTEmptyStatement,  net.sourceforge.jrefactory.ast.ASTType,  net.sourceforge.jrefactory.ast.ASTSwitchStatement,  net.sourceforge.jrefactory.ast.ASTNullLiteral,  net.sourceforge.jrefactory.ast.ASTInclusiveOrExpression,  net.sourceforge.jrefactory.ast.ASTPackageDeclaration,  net.sourceforge.jrefactory.ast.ASTTypeParameters,  net.sourceforge.jrefactory.ast.ASTConditionalAndExpression,  net.sourceforge.jrefactory.ast.ASTMemberValuePairs,  net.sourceforge.jrefactory.ast.ASTRelationalExpression,  net.sourceforge.jrefactory.ast.ASTInstanceOfExpression,  net.sourceforge.jrefactory.ast.ASTArguments,  net.sourceforge.jrefactory.ast.ASTFormalParameters,  net.sourceforge.jrefactory.ast.ASTExclusiveOrExpression,  net.sourceforge.jrefactory.ast.ASTVariableInitializer,  net.sourceforge.jrefactory.ast.ASTStatement,  net.sourceforge.jrefactory.ast.ASTCompilationUnit,  net.sourceforge.jrefactory.ast.ASTConditionalExpression,  net.sourceforge.jrefactory.ast.ASTMemberValuePair,  net.sourceforge.jrefactory.ast.ASTClassBodyDeclaration,
SimpleNode
public class SimpleNode implements Node(Code)
This object is the base class for all items in the AST (abstract syntax tree).
author:
   Mike Atkinson
since:
   jRefactory 2.9.0, created October 16, 2003


Field Summary
protected  Node[]children
    
protected  intid
    
protected  Nodeparent
    
protected  JavaParserparser
    
public  Vectorspecials
    

Constructor Summary
public  SimpleNode(int i)
    
public  SimpleNode(JavaParser parser, int i)
    

Method Summary
public  voidaddSpecial(String key, Token value)
    
public  ObjectchildrenAccept(JavaParserVisitor visitor, Object data)
     Accept the visitor.
public  voiddump(String prefix)
     Dump the node data (including the special tokens) to System.err Override this method if you want to customize how the node dumps out its children.
public  StringdumpString(String prefix)
     Dump the node data (including the special tokens) to a String.
public  ListfindChildrenOfType(Class targetType)
    
public  voidfindChildrenOfType(Class targetType, List results)
    
public  voidfindChildrenOfType(Class targetType, List results, boolean descendIntoNestedClasses)
    
public  intgetBeginColumn()
    
public  intgetBeginLine()
    
public  intgetEndColumn()
    
public  intgetEndLine()
    
public  StringgetImage()
    
public  StringgetName()
    
public  ScopegetScope()
    
public  TokengetSpecial(String key)
    
public  booleanhasAnyChildren()
    
protected  voidinit()
    
public  booleanisRequired()
    
public  ObjectjjtAccept(JavaParserVisitor visitor, Object data)
     Accept the visitor.
public  voidjjtAddChild(Node n, int i)
    
public  voidjjtAddFirstChild(Node n)
    
public  voidjjtClose()
    
public  voidjjtDeleteChild(int i)
    
public  NodejjtGetChild(int i)
    
public  NodejjtGetFirstChild()
     This method returns a child node.
public  intjjtGetID()
    
public  intjjtGetNumChildren()
    
public  NodejjtGetParent()
    
public  voidjjtInsertChild(Node n, int i)
    
public  voidjjtOpen()
    
public  voidjjtSetParent(Node n)
    
protected  StringprintModifiers()
    
public  voidremoveSpecial(String key)
    
public  voidsetLineAndColumnInfo(int beginLine, int beginColumn, int endLine, int endColumn)
    
public  voidsetScope(Scope scope)
    
public  voidtestingOnly__setBeginColumn(int i)
    
public  voidtestingOnly__setBeginLine(int i)
    
public  StringtoString()
     You can override these two methods in subclasses of SimpleNode to customize the way the node appears when the tree is dumped.
public  StringtoString(String prefix)
     You can override these two methods in subclasses of SimpleNode to customize the way the node appears when the tree is dumped.

Field Detail
children
protected Node[] children(Code)
Description of the Field



id
protected int id(Code)
Description of the Field



parent
protected Node parent(Code)
Description of the Field



parser
protected JavaParser parser(Code)
Description of the Field



specials
public Vector specials(Code)
Description of the Field




Constructor Detail
SimpleNode
public SimpleNode(int i)(Code)
Constructor for the SimpleNode object
Parameters:
  i - Description of Parameter



SimpleNode
public SimpleNode(JavaParser parser, int i)(Code)
Constructor for the SimpleNode object
Parameters:
  parser - Description of Parameter
Parameters:
  i - Description of Parameter




Method Detail
addSpecial
public void addSpecial(String key, Token value)(Code)
Description of the Method
Parameters:
  key - Description of Parameter
Parameters:
  value - Description of Parameter



childrenAccept
public Object childrenAccept(JavaParserVisitor visitor, Object data)(Code)
Accept the visitor.
Parameters:
  visitor - Description of Parameter
Parameters:
  data - Description of Parameter Description of the Returned Value



dump
public void dump(String prefix)(Code)
Dump the node data (including the special tokens) to System.err Override this method if you want to customize how the node dumps out its children.
Parameters:
  prefix - prefixed to every line of the output



dumpString
public String dumpString(String prefix)(Code)
Dump the node data (including the special tokens) to a String.
Parameters:
  prefix - prefixed to every line of the output dump of the Node data.
since:
   JRefactory 2.7.00



findChildrenOfType
public List findChildrenOfType(Class targetType)(Code)
Description of the Method
Parameters:
  targetType - Description of the Parameter Description of the Return Value



findChildrenOfType
public void findChildrenOfType(Class targetType, List results)(Code)
Description of the Method
Parameters:
  targetType - Description of the Parameter
Parameters:
  results - Description of the Parameter



findChildrenOfType
public void findChildrenOfType(Class targetType, List results, boolean descendIntoNestedClasses)(Code)
Description of the Method
Parameters:
  targetType - Description of the Parameter
Parameters:
  results - Description of the Parameter
Parameters:
  descendIntoNestedClasses - Description of the Parameter



getBeginColumn
public int getBeginColumn()(Code)
Gets the beginColumn attribute of the SimpleNode object The beginColumn value



getBeginLine
public int getBeginLine()(Code)
Gets the beginLine attribute of the SimpleNode object The beginLine value



getEndColumn
public int getEndColumn()(Code)
Gets the endColumn attribute of the SimpleNode object The endColumn value



getEndLine
public int getEndLine()(Code)
Gets the endLine attribute of the SimpleNode object The endLine value



getImage
public String getImage()(Code)
Gets the image attribute of the SimpleNode object The image value



getName
public String getName()(Code)
Gets the name attribute of the SimpleNode object The name value



getScope
public Scope getScope()(Code)
Gets the scope attribute of the SimpleNode object The scope value



getSpecial
public Token getSpecial(String key)(Code)
Gets the special associated with a particular key
Parameters:
  key - the key the value



hasAnyChildren
public boolean hasAnyChildren()(Code)
Description of the Method Description of the Returned Value



init
protected void init()(Code)
Initializes any variables that are not required



isRequired
public boolean isRequired()(Code)
Is javadoc required? The required value



jjtAccept
public Object jjtAccept(JavaParserVisitor visitor, Object data)(Code)
Accept the visitor.
Parameters:
  visitor - Description of Parameter
Parameters:
  data - Description of Parameter Description of the Returned Value



jjtAddChild
public void jjtAddChild(Node n, int i)(Code)
Description of the Method
Parameters:
  n - Description of Parameter
Parameters:
  i - Description of Parameter



jjtAddFirstChild
public void jjtAddFirstChild(Node n)(Code)
Description of the Method
Parameters:
  n - Description of Parameter



jjtClose
public void jjtClose()(Code)
Description of the Method



jjtDeleteChild
public void jjtDeleteChild(int i)(Code)
Remove the node numbered i
Parameters:
  i - The index of the node to remove



jjtGetChild
public Node jjtGetChild(int i)(Code)
Description of the Method
Parameters:
  i - Description of Parameter Description of the Returned Value



jjtGetFirstChild
public Node jjtGetFirstChild()(Code)
This method returns a child node. The children are numbered from zero, left to right.

Same as jjtGetFirstChild(); Description of the Returned Value




jjtGetID
public int jjtGetID()(Code)
Return the id for this node the id



jjtGetNumChildren
public int jjtGetNumChildren()(Code)
Description of the Method Description of the Returned Value



jjtGetParent
public Node jjtGetParent()(Code)
Description of the Method Description of the Returned Value



jjtInsertChild
public void jjtInsertChild(Node n, int i)(Code)
Insert the node numbered i
Parameters:
  n - Description of Parameter
Parameters:
  i - The index of the node to remove



jjtOpen
public void jjtOpen()(Code)
Description of the Method



jjtSetParent
public void jjtSetParent(Node n)(Code)
Description of the Method
Parameters:
  n - Description of Parameter



printModifiers
protected String printModifiers()(Code)
Description of the Method Description of the Returned Value



removeSpecial
public void removeSpecial(String key)(Code)
Removes a special associated with a key
Parameters:
  key - the special to remove



setLineAndColumnInfo
public void setLineAndColumnInfo(int beginLine, int beginColumn, int endLine, int endColumn)(Code)



setScope
public void setScope(Scope scope)(Code)
Sets the scope attribute of the SimpleNode object
Parameters:
  scope - The new scope value



testingOnly__setBeginColumn
public void testingOnly__setBeginColumn(int i)(Code)
A unit test for JUnit
Parameters:
  i - Description of Parameter



testingOnly__setBeginLine
public void testingOnly__setBeginLine(int i)(Code)
A unit test for JUnit
Parameters:
  i - Description of Parameter



toString
public String toString()(Code)
You can override these two methods in subclasses of SimpleNode to customize the way the node appears when the tree is dumped. If your output uses more than one line you should override toString(String), otherwise overriding toString() is probably all you need to do. Description of the Returned Value



toString
public String toString(String prefix)(Code)
You can override these two methods in subclasses of SimpleNode to customize the way the node appears when the tree is dumped. If your output uses more than one line you should override toString(String), otherwise overriding toString() is probably all you need to do.
Parameters:
  prefix - Description of Parameter Description of the Returned Value



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.