Java Doc for CodeStructure.java in  » IDE-Netbeans » form » org » netbeans » modules » form » codestructure » 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 » form » org.netbeans.modules.form.codestructure 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.form.codestructure.CodeStructure

CodeStructure
public class CodeStructure (Code)
Class representing code structure of one form. Also manages a pool of variables for code expressions, and a undo/redo queue.
author:
   Tomas Pavek

Inner Class :final class Variable implements CodeVariable

Field Summary
final public static  CodeExpression[]EMPTY_PARAMS
    

Constructor Summary
public  CodeStructure(boolean startUndoRedoRecording)
    

Method Summary
public  voidattachExpressionToVariable(CodeExpression expression, CodeVariable variable)
     Attaches an expression to a variable.
public  voidclearExternalVariableNames()
    
public  CodeGroupcreateCodeGroup()
     Creates a default group of statements.
public  CodeExpressioncreateDefaultExpression()
     Creates an expression with no origin.
public  CodeExpressioncreateExpression(Constructor ctor, CodeExpression[] params)
     Creates a new expression based on a constructor.
public  CodeExpressioncreateExpression(CodeExpression parent, Method method, CodeExpression[] params)
     Creates a new expression based on a method.
public  CodeExpressioncreateExpression(CodeExpression parent, Field field)
     Creates a new expression based on a field.
public  CodeExpressioncreateExpression(Class type, Object value, String javaInitStr)
     Creates a new expression from based on a value.
public  CodeExpressioncreateExpression(CodeExpressionOrigin origin)
     Creates a new expression of an arbitrary origin.
public  CodeExpressioncreateNullExpression(Class type)
     Creates an expression representing null value.
public static  CodeExpressionOrigincreateOrigin(Constructor ctor, CodeExpression[] params)
     Creates an expression origin from a constructor.
public static  CodeExpressionOrigincreateOrigin(CodeExpression parent, Method m, CodeExpression[] params)
     Creates an expression origin from a method.
public static  CodeExpressionOrigincreateOrigin(CodeExpression parent, Field f)
     Creates an expression origin from a field.
public static  CodeExpressionOrigincreateOrigin(Class type, Object value, String javaStr)
     Creates an expression origin from a value (and provided java string).
public static  CodeStatementcreateStatement(CodeExpression expression, Method m, CodeExpression[] params)
     Creates a new method statement.
public static  CodeStatementcreateStatement(CodeExpression expression, Field f, CodeExpression assignExp)
     Creates a new field statement.
public  CodeVariablecreateVariable(int type, Class declaredType, String name)
     Creates a new variable.
public  CodeVariablecreateVariableForExpression(CodeExpression expression, int type, String name)
    
public  CodeVariablecreateVariableForExpression(CodeExpression expression, int type, String typeParameters, String name)
     Creates a new variable and attaches given expression to it.
public static  CodeExpression[]filterExpressions(Iterator it, Object originMetaObject)
     Filters out expressions whose origin uses given or equal meta object. Passed expressions are returned in an array.
public static  CodeStatement[]filterStatements(Iterator it, Object metaObject)
     Filters out statements using given or equal meta object.
public  CollectiongetAllVariables()
     Returns all variables in this CodeStructure.
 intgetDefaultVariableType()
    
public static  IteratorgetDefinedExpressionsIterator(CodeExpression exp)
     Returns an iterator of expressions that are defined by given expression.
public static  IteratorgetDefinedStatementsIterator(CodeExpression exp)
     Returns an iterator of statements that are defined by given expression.
protected  MapgetExpressionsToVariables()
    
public  StringgetExternalVariableName(Class type, String suggestedName, boolean register)
    
protected  MapgetNamesToVariablesMap()
    
public static  IteratorgetUsingExpressionsIterator(CodeExpression exp)
     Returns an iterator of exppressions that use given expression as a parameter in their origin.
public static  IteratorgetUsingStatementsIterator(CodeExpression exp)
     Returns an iterator of statements that use given expression as a parameter.
public  CodeVariablegetVariable(String name)
     Returns variable of given name.
public  CodeVariablegetVariable(CodeExpression expression)
     Returns variable of an expression.
public  IteratorgetVariablesIterator(int type, int typeMask, Class declaredType)
     Returns an iterator of variables of given criterions.
public  booleanisUndoRedoRecording()
    
public  booleanisVariableNameReserved(String name)
     Checks whether given name is already used by some variable.
 voidlogUndoableChange(CodeStructureChange change)
    
public  ObjectmarkForUndo()
    
public  booleanredoToMark(Object mark)
    
public  voidregisterExpression(CodeExpression expression)
     Prevents an expression from being removed automatically from structure when no more used (by any UsingCodeObject).
static  voidregisterUsingCodeObject(CodeStatement statement)
    
static  voidregisterUsingCodeObject(CodeExpression expression)
    
public  voidreleaseUndoableChanges(Object fromMark, Object toMark)
    
public  CodeVariablereleaseVariable(String name)
     Releases variable of given name.
public static  voidremoveExpression(CodeExpression expression)
     Removes an expression from the structure completely.
public  voidremoveExpressionFromVariable(CodeExpression expression)
     Releases an expression from using a variable.
public static  voidremoveStatement(CodeStatement statement)
     Removes a statement from the structure completely.
public static  voidremoveStatements(Iterator it)
     Removes all statements provided by an Iterator.
public  booleanrenameVariable(String oldName, String newName)
     Renames variable of name oldName to newName.
public  voidsetDefaultVariableType(int type)
     WARNING: This method will be removed in full two-way editing implementation.
public  voidsetFormJavaSource(FormJavaSource formJavaSource)
    
public  voidsetUndoRedoRecording(boolean record)
    
static  voidt(String str)
     For debugging purposes only.
public  booleanundoToMark(Object mark)
    
static  voidunregisterObjectUsage(UsingCodeObject usingObject, UsedCodeObject usedObject)
    
static  voidunregisterUsedCodeObject(UsedCodeObject usedObject)
    
static  voidunregisterUsingCodeObject(UsingCodeObject usingObject)
    

Field Detail
EMPTY_PARAMS
final public static CodeExpression[] EMPTY_PARAMS(Code)




Constructor Detail
CodeStructure
public CodeStructure(boolean startUndoRedoRecording)(Code)




Method Detail
attachExpressionToVariable
public void attachExpressionToVariable(CodeExpression expression, CodeVariable variable)(Code)
Attaches an expression to a variable. The variable will be used in the code instead of the expression.



clearExternalVariableNames
public void clearExternalVariableNames()(Code)



createCodeGroup
public CodeGroup createCodeGroup()(Code)
Creates a default group of statements.



createDefaultExpression
public CodeExpression createDefaultExpression()(Code)
Creates an expression with no origin. The origin must be set explicitly before the expression is used.



createExpression
public CodeExpression createExpression(Constructor ctor, CodeExpression[] params)(Code)
Creates a new expression based on a constructor.



createExpression
public CodeExpression createExpression(CodeExpression parent, Method method, CodeExpression[] params)(Code)
Creates a new expression based on a method.



createExpression
public CodeExpression createExpression(CodeExpression parent, Field field)(Code)
Creates a new expression based on a field.



createExpression
public CodeExpression createExpression(Class type, Object value, String javaInitStr)(Code)
Creates a new expression from based on a value.



createExpression
public CodeExpression createExpression(CodeExpressionOrigin origin)(Code)
Creates a new expression of an arbitrary origin. /



createNullExpression
public CodeExpression createNullExpression(Class type)(Code)
Creates an expression representing null value.



createOrigin
public static CodeExpressionOrigin createOrigin(Constructor ctor, CodeExpression[] params)(Code)
Creates an expression origin from a constructor.



createOrigin
public static CodeExpressionOrigin createOrigin(CodeExpression parent, Method m, CodeExpression[] params)(Code)
Creates an expression origin from a method.



createOrigin
public static CodeExpressionOrigin createOrigin(CodeExpression parent, Field f)(Code)
Creates an expression origin from a field.



createOrigin
public static CodeExpressionOrigin createOrigin(Class type, Object value, String javaStr)(Code)
Creates an expression origin from a value (and provided java string).



createStatement
public static CodeStatement createStatement(CodeExpression expression, Method m, CodeExpression[] params)(Code)
Creates a new method statement.



createStatement
public static CodeStatement createStatement(CodeExpression expression, Field f, CodeExpression assignExp)(Code)
Creates a new field statement.



createVariable
public CodeVariable createVariable(int type, Class declaredType, String name)(Code)
Creates a new variable. It is empty - with no expression attached.



createVariableForExpression
public CodeVariable createVariableForExpression(CodeExpression expression, int type, String name)(Code)



createVariableForExpression
public CodeVariable createVariableForExpression(CodeExpression expression, int type, String typeParameters, String name)(Code)
Creates a new variable and attaches given expression to it. If the requested name is already in use, then a free name is found. If null is provided as the name, then expression's short class name is used.



filterExpressions
public static CodeExpression[] filterExpressions(Iterator it, Object originMetaObject)(Code)
Filters out expressions whose origin uses given or equal meta object. Passed expressions are returned in an array.



filterStatements
public static CodeStatement[] filterStatements(Iterator it, Object metaObject)(Code)
Filters out statements using given or equal meta object. Passed statements are returned in an array.



getAllVariables
public Collection getAllVariables()(Code)
Returns all variables in this CodeStructure.



getDefaultVariableType
int getDefaultVariableType()(Code)



getDefinedExpressionsIterator
public static Iterator getDefinedExpressionsIterator(CodeExpression exp)(Code)
Returns an iterator of expressions that are defined by given expression. These expressions use the given expression as the parent of origin).



getDefinedStatementsIterator
public static Iterator getDefinedStatementsIterator(CodeExpression exp)(Code)
Returns an iterator of statements that are defined by given expression. These statements use the given expression as the parent.



getExpressionsToVariables
protected Map getExpressionsToVariables()(Code)



getExternalVariableName
public String getExternalVariableName(Class type, String suggestedName, boolean register)(Code)



getNamesToVariablesMap
protected Map getNamesToVariablesMap()(Code)



getUsingExpressionsIterator
public static Iterator getUsingExpressionsIterator(CodeExpression exp)(Code)
Returns an iterator of exppressions that use given expression as a parameter in their origin.



getUsingStatementsIterator
public static Iterator getUsingStatementsIterator(CodeExpression exp)(Code)
Returns an iterator of statements that use given expression as a parameter.



getVariable
public CodeVariable getVariable(String name)(Code)
Returns variable of given name.



getVariable
public CodeVariable getVariable(CodeExpression expression)(Code)
Returns variable of an expression.



getVariablesIterator
public Iterator getVariablesIterator(int type, int typeMask, Class declaredType)(Code)
Returns an iterator of variables of given criterions.



isUndoRedoRecording
public boolean isUndoRedoRecording()(Code)



isVariableNameReserved
public boolean isVariableNameReserved(String name)(Code)
Checks whether given name is already used by some variable.



logUndoableChange
void logUndoableChange(CodeStructureChange change)(Code)



markForUndo
public Object markForUndo()(Code)



redoToMark
public boolean redoToMark(Object mark)(Code)



registerExpression
public void registerExpression(CodeExpression expression)(Code)
Prevents an expression from being removed automatically from structure when no more used (by any UsingCodeObject).



registerUsingCodeObject
static void registerUsingCodeObject(CodeStatement statement)(Code)



registerUsingCodeObject
static void registerUsingCodeObject(CodeExpression expression)(Code)



releaseUndoableChanges
public void releaseUndoableChanges(Object fromMark, Object toMark)(Code)



releaseVariable
public CodeVariable releaseVariable(String name)(Code)
Releases variable of given name.



removeExpression
public static void removeExpression(CodeExpression expression)(Code)
Removes an expression from the structure completely.



removeExpressionFromVariable
public void removeExpressionFromVariable(CodeExpression expression)(Code)
Releases an expression from using a variable.



removeStatement
public static void removeStatement(CodeStatement statement)(Code)
Removes a statement from the structure completely.



removeStatements
public static void removeStatements(Iterator it)(Code)
Removes all statements provided by an Iterator.



renameVariable
public boolean renameVariable(String oldName, String newName)(Code)
Renames variable of name oldName to newName.



setDefaultVariableType
public void setDefaultVariableType(int type)(Code)
WARNING: This method will be removed in full two-way editing implementation. DO NOT USE!



setFormJavaSource
public void setFormJavaSource(FormJavaSource formJavaSource)(Code)



setUndoRedoRecording
public void setUndoRedoRecording(boolean record)(Code)



t
static void t(String str)(Code)
For debugging purposes only.



undoToMark
public boolean undoToMark(Object mark)(Code)



unregisterObjectUsage
static void unregisterObjectUsage(UsingCodeObject usingObject, UsedCodeObject usedObject)(Code)



unregisterUsedCodeObject
static void unregisterUsedCodeObject(UsedCodeObject usedObject)(Code)



unregisterUsingCodeObject
static void unregisterUsingCodeObject(UsingCodeObject usingObject)(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.