Java Doc for ParserContext.java in  » Development » jga-Generic-Algorithms » net » sf » jga » parser » 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 » Development » jga Generic Algorithms » net.sf.jga.parser 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.sf.jga.parser.ParserContext

ParserContext
class ParserContext (Code)
Configuration settings for a JFXGParser.

Copyright © 2005 David A. Hall




Constructor Summary
 ParserContext()
    

Method Summary
public  voidaddPromotionRule(Class fromType, Class toType, UnaryFunctor converter)
     Registers a type-coercion rule that will promote values of the from type to values of the to type for use in expressions.
public  voidbindThis(Object thisBinding)
    
 ParserContextcopy()
     Returns a copy of this context.
public  voiddeclareArgument(String argName, Class argType)
     Declares a named argument to the functor being built, and its type.
public  voiddeportClass(String alias)
     Removes information about the class imported under the given name.
public  voiddeportPackage(String pkgName)
     Removes information about the package imported under the given name.
protected  ObjectgetBoundObject()
    
public  ClassgetImportedClass(String alias)
    
public  FieldgetImportedField(String name)
     Returns the imported field with the given name, or null if no such field has been imported.
public  Method[]getImportedMethods(String name)
    
public  UnaryFunctorgetPromotionRule(Class fromType, Class toType)
     Returns a type-coercion rule that will promote values of the from type to values of the to type for use in expressions, if any such rule exists.
public  ClassgetTypeForName(String name)
    
public  voidimportClass(Class clasz)
     Imports the given class into the parser.
public  voidimportClass(String alias, Class clasz)
     Imports the given class into the parser under the given alias.
public  voidimportField(Class clasz, String name)
     Imports the given static member.
public  voidimportField(Field field)
     Imports the given static member.
public  voidimportMethod(Class clasz, String name)
     Imports the given static method(s).
public  voidimportMethod(Method meth)
     Imports a static method into the parser.
public  voidimportMethod(String name, Method meth)
     Imports a static method into the parser under the given name.
public  voidimportPackage(String pkgName)
     Imports all classes in the given package into the parser.
public  voidimportStatics(Class clasz)
     Imports all of the static public methods and members in the given class.
public  booleanisUndecoratedDecimal()
     When true, an undecorated number containing a decimal, for example 1.50 is interpreted as a BigDecimal literal.
public  voidremovePromotionRule(Class fromType, Class toType)
     Removes the type-coercion rule (if any) that would have promoted values of the from type to values of the to type for use in expressions.
public  voidsetUndecoratedDecimal(boolean flag)
     Enables/Disables the interpretation of undecorated decimal literals as BigDecimals.


Constructor Detail
ParserContext
ParserContext()(Code)




Method Detail
addPromotionRule
public void addPromotionRule(Class fromType, Class toType, UnaryFunctor converter)(Code)
Registers a type-coercion rule that will promote values of the from type to values of the to type for use in expressions.



bindThis
public void bindThis(Object thisBinding)(Code)
Binds the object to which 'this' refers



copy
ParserContext copy()(Code)
Returns a copy of this context.



declareArgument
public void declareArgument(String argName, Class argType)(Code)
Declares a named argument to the functor being built, and its type.



deportClass
public void deportClass(String alias)(Code)
Removes information about the class imported under the given name.



deportPackage
public void deportPackage(String pkgName)(Code)
Removes information about the package imported under the given name.



getBoundObject
protected Object getBoundObject()(Code)
Returns the current object to which 'this' refers



getImportedClass
public Class getImportedClass(String alias)(Code)
Returns the class associated with the given alias



getImportedField
public Field getImportedField(String name)(Code)
Returns the imported field with the given name, or null if no such field has been imported.



getImportedMethods
public Method[] getImportedMethods(String name)(Code)
Returns a list of methods with the given name



getPromotionRule
public UnaryFunctor getPromotionRule(Class fromType, Class toType)(Code)
Returns a type-coercion rule that will promote values of the from type to values of the to type for use in expressions, if any such rule exists. Returns null if no such rule exists.



getTypeForName
public Class getTypeForName(String name)(Code)
Returns the type of the named argument, or null if the name is unrecognized



importClass
public void importClass(Class clasz)(Code)
Imports the given class into the parser. The class will not need to be fully qualified for use in expressions. This will replace any existing imported class that happens to have the same name.



importClass
public void importClass(String alias, Class clasz)(Code)
Imports the given class into the parser under the given alias. The alias may be used in place of the fully qualified name of the class hereafter. This will replace any existing imported class associated with the alias.



importField
public void importField(Class clasz, String name) throws NoSuchFieldException(Code)
Imports the given static member. The member will not need to be qualified with its classname for use in expressions.
throws:
  java.lang.NoSuchFieldException - if the named field does not exist
throws:
  java.lang.IllegalArgumentException - if the named field is not static



importField
public void importField(Field field) throws IllegalArgumentException(Code)
Imports the given static member. The member will not need to be qualified with its classname for use in expressions.
throws:
  java.lang.IllegalArgumentException - if the field is not static



importMethod
public void importMethod(Class clasz, String name) throws NoSuchMethodException(Code)
Imports the given static method(s).
throws:
  java.lang.NoSuchMethodException - if the named method does not exist, or ifit/they is/are not static



importMethod
public void importMethod(Method meth)(Code)
Imports a static method into the parser. The method will not need to be qualified with its classname for use in expressions. Multiple methods may be imported with the same name: the first best fit will be used when the method name is used.
throws:
  java.lang.NoSuchMethodException - if the named method does not exist
throws:
  java.lang.IllegalArgumentException - if the named method is not static



importMethod
public void importMethod(String name, Method meth)(Code)
Imports a static method into the parser under the given name. The method will not need to be qualified with its classname for use in expressions. Multiple methods may be imported with the same name: the first best fit will be used when the method name is used.
throws:
  java.lang.IllegalArgumentException - if the method is not static



importPackage
public void importPackage(String pkgName)(Code)
Imports all classes in the given package into the parser.



importStatics
public void importStatics(Class clasz)(Code)
Imports all of the static public methods and members in the given class.



isUndecoratedDecimal
public boolean isUndecoratedDecimal()(Code)
When true, an undecorated number containing a decimal, for example 1.50 is interpreted as a BigDecimal literal. When false, the same token is interpreted as a Double, as is the case in standard java



removePromotionRule
public void removePromotionRule(Class fromType, Class toType)(Code)
Removes the type-coercion rule (if any) that would have promoted values of the from type to values of the to type for use in expressions.



setUndecoratedDecimal
public void setUndecoratedDecimal(boolean flag)(Code)
Enables/Disables the interpretation of undecorated decimal literals as BigDecimals. When true, an undecorated number containing a decimal, for example 1.50 is interpreted as a BigDecimal literal. When false, the same token is interpreted as a Double, as is the case in standard java



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.