Java Doc for Node.java in  » IDE-Netbeans » library » org » mozilla » javascript » 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 » IDE Netbeans » library » org.mozilla.javascript 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.mozilla.javascript.Node

All known Subclasses:   org.mozilla.javascript.ScriptOrFnNode,
Node
public class Node (Code)
This class implements the root of the intermediate representation.
author:
   Norris Boyd
author:
   Mike McCabe

Inner Class :public static class NumberNode extends Node
Inner Class :public static class StringNode extends Node
Inner Class :public static class LabelledNode extends StringNode
Inner Class :public static class Jump extends Node

Field Summary
final public static  intBOTHLEFTRIGHT
    
final public static  intDECR_FLAGPOST_FLAG
    
final static  intEND_DROPS_OFF
    
final static  intEND_RETURNS
    
final static  intEND_RETURNS_VALUE
    
final static  intEND_UNREACHED
     These flags enumerate the possible ways a statement/function can terminate.
final public static  intFUNCTION_PROPLOCAL_PROPLOCAL_BLOCK_PROPREGEXP_PROPCASEARRAY_PROPTARGETBLOCK_PROPVARIABLE_PROPISNUMBER_PROPDIRECTCALL_PROPSPECIALCALL_PROPSKIP_INDEXES_PROPOBJECT_IDS_PROPINCRDECR_PROPCATCH_SCOPE_PROPLABEL_ID_PROPMEMBER_TYPE_PROPNAME_PROPCONTROL_BLOCK_PROPPARENTHESIZED_PROPLAST_PROP
    
final public static  intNON_SPECIALCALLSPECIALCALL_EVALSPECIALCALL_WITH
    
final public static  intPROPERTY_FLAGATTRIBUTE_FLAGDESCENDANTS_FLAG
    
 Nodenext
    
 inttype
    

Constructor Summary
public  Node(int nodeType)
    
public  Node(int nodeType, Node child)
    
public  Node(int nodeType, Node left, Node right)
    
public  Node(int nodeType, Node left, Node mid, Node right)
    
public  Node(int nodeType, int line)
    
public  Node(int nodeType, Node child, int line)
    
public  Node(int nodeType, Node left, Node right, int line)
    
public  Node(int nodeType, Node left, Node mid, Node right, int line)
    

Method Summary
public  voidaddChildAfter(Node newChild, Node node)
     Add 'child' after 'node'.
public  voidaddChildBefore(Node newChild, Node node)
     Add 'child' before 'node'.
public  voidaddChildToBack(Node child)
    
public  voidaddChildToFront(Node child)
    
public  voidaddChildrenToBack(Node children)
    
public  voidaddChildrenToFront(Node children)
    
public  NodegetChildBefore(Node child)
    
final public  doublegetDouble()
    
public  intgetExistingIntProp(int propType)
    
public  NodegetFirstChild()
    
public  intgetIntProp(int propType, int defaultValue)
    
public  NodegetLastChild()
    
public  NodegetLastSibling()
    
public  intgetLineno()
    
public  NodegetNext()
    
final public  NodegetParentNode()
    
public  ObjectgetProp(int propType)
    
final public  intgetSourceEnd()
    
final public  intgetSourceStart()
    
final public  StringgetString()
     Can only be called when node has String context.
public  intgetType()
    
public  booleanhasChildren()
    
public  booleanhasConsistentReturnUsage()
     Checks that every return usage in a function body is consistent with the requirements of strict-mode.
public  booleanhasSideEffects()
    
public  booleanisStringNode()
    
final public  intlabelId()
    
public  voidlabelId(int labelId)
    
public static  NodenewNumber(double number)
    
public static  NodenewString(String str)
    
public static  NodenewString(int type, String str)
    
public static  NodenewTarget()
    
public  voidputIntProp(int propType, int prop)
    
public  voidputProp(int propType, Object prop)
    
public  voidremoveChild(Node child)
    
public  voidremoveProp(int propType)
    
public  voidreplaceChild(Node child, Node newChild)
    
public  voidreplaceChildAfter(Node prevChild, Node newChild)
    
final public  voidsetDouble(double number)
    
final public  voidsetParentNode(Node parent)
    
final public  voidsetSourceBounds(int start, int end)
    
final public  voidsetString(String s)
     Can only be called when node has String context.
public  voidsetType(int type)
    
public  StringtoString()
    
public  StringtoStringTree(ScriptOrFnNode treeTop)
    

Field Detail
BOTHLEFTRIGHT
final public static int BOTHLEFTRIGHT(Code)



DECR_FLAGPOST_FLAG
final public static int DECR_FLAGPOST_FLAG(Code)



END_DROPS_OFF
final static int END_DROPS_OFF(Code)



END_RETURNS
final static int END_RETURNS(Code)



END_RETURNS_VALUE
final static int END_RETURNS_VALUE(Code)



END_UNREACHED
final static int END_UNREACHED(Code)
These flags enumerate the possible ways a statement/function can terminate. These flags are used by endCheck() and by the Parser to detect inconsistent return usage. END_UNREACHED is reserved for code paths that are assumed to always be able to execute (example: throw, continue) END_DROPS_OFF indicates if the statement can transfer control to the next one. Statement such as return dont. A compound statement may have some branch that drops off control to the next statement. END_RETURNS indicates that the statement can return (without arguments) END_RETURNS_VALUE indicates that the statement can return a value. A compound statement such as if (condition) { return value; } Will be detected as (END_DROPS_OFF | END_RETURN_VALUE) by endCheck()



FUNCTION_PROPLOCAL_PROPLOCAL_BLOCK_PROPREGEXP_PROPCASEARRAY_PROPTARGETBLOCK_PROPVARIABLE_PROPISNUMBER_PROPDIRECTCALL_PROPSPECIALCALL_PROPSKIP_INDEXES_PROPOBJECT_IDS_PROPINCRDECR_PROPCATCH_SCOPE_PROPLABEL_ID_PROPMEMBER_TYPE_PROPNAME_PROPCONTROL_BLOCK_PROPPARENTHESIZED_PROPLAST_PROP
final public static int FUNCTION_PROPLOCAL_PROPLOCAL_BLOCK_PROPREGEXP_PROPCASEARRAY_PROPTARGETBLOCK_PROPVARIABLE_PROPISNUMBER_PROPDIRECTCALL_PROPSPECIALCALL_PROPSKIP_INDEXES_PROPOBJECT_IDS_PROPINCRDECR_PROPCATCH_SCOPE_PROPLABEL_ID_PROPMEMBER_TYPE_PROPNAME_PROPCONTROL_BLOCK_PROPPARENTHESIZED_PROPLAST_PROP(Code)



NON_SPECIALCALLSPECIALCALL_EVALSPECIALCALL_WITH
final public static int NON_SPECIALCALLSPECIALCALL_EVALSPECIALCALL_WITH(Code)



PROPERTY_FLAGATTRIBUTE_FLAGDESCENDANTS_FLAG
final public static int PROPERTY_FLAGATTRIBUTE_FLAGDESCENDANTS_FLAG(Code)



next
Node next(Code)



type
int type(Code)




Constructor Detail
Node
public Node(int nodeType)(Code)



Node
public Node(int nodeType, Node child)(Code)



Node
public Node(int nodeType, Node left, Node right)(Code)



Node
public Node(int nodeType, Node left, Node mid, Node right)(Code)



Node
public Node(int nodeType, int line)(Code)



Node
public Node(int nodeType, Node child, int line)(Code)



Node
public Node(int nodeType, Node left, Node right, int line)(Code)



Node
public Node(int nodeType, Node left, Node mid, Node right, int line)(Code)




Method Detail
addChildAfter
public void addChildAfter(Node newChild, Node node)(Code)
Add 'child' after 'node'.



addChildBefore
public void addChildBefore(Node newChild, Node node)(Code)
Add 'child' before 'node'.



addChildToBack
public void addChildToBack(Node child)(Code)



addChildToFront
public void addChildToFront(Node child)(Code)



addChildrenToBack
public void addChildrenToBack(Node children)(Code)



addChildrenToFront
public void addChildrenToFront(Node children)(Code)



getChildBefore
public Node getChildBefore(Node child)(Code)



getDouble
final public double getDouble()(Code)
Can only be called when getType() == Token.NUMBER



getExistingIntProp
public int getExistingIntProp(int propType)(Code)



getFirstChild
public Node getFirstChild()(Code)



getIntProp
public int getIntProp(int propType, int defaultValue)(Code)



getLastChild
public Node getLastChild()(Code)



getLastSibling
public Node getLastSibling()(Code)



getLineno
public int getLineno()(Code)



getNext
public Node getNext()(Code)



getParentNode
final public Node getParentNode()(Code)



getProp
public Object getProp(int propType)(Code)



getSourceEnd
final public int getSourceEnd()(Code)



getSourceStart
final public int getSourceStart()(Code)



getString
final public String getString()(Code)
Can only be called when node has String context.



getType
public int getType()(Code)



hasChildren
public boolean hasChildren()(Code)



hasConsistentReturnUsage
public boolean hasConsistentReturnUsage()(Code)
Checks that every return usage in a function body is consistent with the requirements of strict-mode. true if the function satisfies strict mode requirement.



hasSideEffects
public boolean hasSideEffects()(Code)



isStringNode
public boolean isStringNode()(Code)



labelId
final public int labelId()(Code)



labelId
public void labelId(int labelId)(Code)



newNumber
public static Node newNumber(double number)(Code)



newString
public static Node newString(String str)(Code)



newString
public static Node newString(int type, String str)(Code)



newTarget
public static Node newTarget()(Code)



putIntProp
public void putIntProp(int propType, int prop)(Code)



putProp
public void putProp(int propType, Object prop)(Code)



removeChild
public void removeChild(Node child)(Code)



removeProp
public void removeProp(int propType)(Code)



replaceChild
public void replaceChild(Node child, Node newChild)(Code)



replaceChildAfter
public void replaceChildAfter(Node prevChild, Node newChild)(Code)



setDouble
final public void setDouble(double number)(Code)



setParentNode
final public void setParentNode(Node parent)(Code)



setSourceBounds
final public void setSourceBounds(int start, int end)(Code)



setString
final public void setString(String s)(Code)
Can only be called when node has String context.



setType
public void setType(int type)(Code)



toString
public String toString()(Code)



toStringTree
public String toStringTree(ScriptOrFnNode treeTop)(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.