Java Doc for FMParser.java in  » Template-Engine » freemarker-2.3.10 » freemarker » core » 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 » Template Engine » freemarker 2.3.10 » freemarker.core 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   freemarker.core.FMParser

FMParser
public class FMParser implements FMParserConstants(Code)
This class is generated by JavaCC from a grammar file.

Inner Class :final static class JJCalls

Field Summary
 SimpleCharStreamjj_input_stream
    
public  booleanlookingAhead
    
 Templatetemplate
    
public  FMParserTokenManagertoken_source
    
public  Tokentokenjj_nt
    

Constructor Summary
public  FMParser(Template template, Reader reader, boolean strictEscapeSyntax, boolean stripWhitespace)
     Constructs a new parser object.
public  FMParser(Template template, Reader reader, boolean strictEscapeSyntax, boolean stripWhitespace, int tagSyntax)
    
public  FMParser(String template)
    
public  FMParser(java.io.InputStream stream)
    
public  FMParser(java.io.Reader stream)
    
public  FMParser(FMParserTokenManager tm)
    

Method Summary
final public  ExpressionAddSubExpression(Expression exp)
     Production that builds up an expression using the dot or dynamic key name or the args list if this is a method invocation.
final public  ExpressionAdditiveExpression()
    
final public  ExpressionAndExpression()
    
final public  TemplateElementAssign()
    
final public  AttemptBlockAttempt()
    
final public  ExpressionBooleanLiteral()
    
final public  BreakInstructionBreak()
     Production used to break out of a loop or a switch block.
final public  ExpressionBuiltIn(Expression exp)
    
final public  BuiltinVariableBuiltinVariable()
    
final public  TemplateElementCall()
    
final public  CaseCase()
    
final public  CommentComment()
    
final public  CompressedBlockCompress()
    
final public  TemplateElementContent()
    
final public  ExpressionDefaultTo(Expression exp)
    
final public  ExpressionDotVariable(Expression exp)
    
final public  ExpressionDynamicKey(Expression exp)
     production for when the key is specified in brackets.
final public  ExpressionEqualityExpression()
    
final public  EscapeBlockEscape()
    
final public  ExpressionExists(Expression exp)
    
final public  ExpressionExpression()
     This is the same as OrExpression, since the OR is the operator with the lowest precedence.
final public  FallbackInstructionFallBack()
    
final public  TemplateElementFlush()
    
final public  IteratorBlockForEach()
    
final public  TemplateElementFreeMarkerText()
     A production freemarker text that may contain ${...} and #{...} but no directives.
final public  TemplateElementFreemarkerDirective()
     A production for FreeMarker directives.
final public  HashLiteralHashLiteral()
    
final public  voidHeaderElement()
    
final public  IdentifierIdentifier()
    
final public  ExpressionIdentifierOrStringLiteral()
    
final public  TemplateElementIf()
    
final public  LibraryLoadImport()
    
final public  IncludeInclude()
    
final public  IteratorBlockList()
    
final public  ListLiteralListLiteral()
    
final public  TokenLooseDirectiveEnd()
     Production to terminate potentially empty elements.
final public  MacroMacro()
    
final public  MethodCallMethodArgs(Expression exp)
     production for an arglist part of a method invocation.
final public  ExpressionMultiplicativeExpression()
     A unary expression followed by zero or more unary expressions with operators in between.
final public  HashMapNamedArgs()
    
final public  TemplateElementNested()
    
final public  NoEscapeBlockNoEscape()
    
final public  TextBlockNoParse()
    
final public  ExpressionNotExpression()
    
final public  ExpressionNumberLiteral()
    
final public  NumericalOutputNumericalOutput()
    
final public  TemplateElementOptionalBlock()
     A production for a block of optional content.
final public  ExpressionOrExpression()
    
final public  TextBlockPCData()
     Production for a block of raw text i.e.
final public  MapParamList()
    
final public  ExpressionParenthesis()
    
final public  ArrayListPositionalArgs()
    
final public  ExpressionPrimaryExpression()
     Lowest level expression, a literal, a variable, or a possibly more complex expression bounded by parentheses.
final public  ExpressionRangeExpression()
    
public  voidReInit(java.io.InputStream stream)
    
public  voidReInit(java.io.Reader stream)
    
public  voidReInit(FMParserTokenManager tm)
    
final public  RecoveryBlockRecover()
    
final public  RecurseNodeRecurse()
    
final public  ExpressionRelationalExpression()
    
final public  ReturnInstructionReturn()
     Production used to jump out of a macro.
final public  TemplateElementRoot()
     Root production to be used when parsing an entire file.
final public  PropertySettingSetting()
    
final public  StopInstructionStop()
    
final public  StringLiteralStringLiteral(boolean interpolate)
    
final public  DollarVariableStringOutput()
     A production representing the ${...} that outputs a variable.
final public  SwitchBlockSwitch()
    
final public  TransformBlockTransform()
    
final public  TemplateElementTrim()
    
final public  ExpressionUnaryExpression()
     A primary expression preceded by zero or more unary operators.
final public  ExpressionUnaryPlusMinusExpression()
    
final public  TemplateElementUnifiedMacroTransform()
    
final public  TokenUnparsedContent(StringBuffer buf)
     Production for dealing with unparsed content, i.e.
final public  VisitNodeVisit()
    
public static  FMParsercreateExpressionParser(String s)
     Create an FM expression parser using a string.
final public  voiddisable_tracing()
    
final public  voidenable_tracing()
    
final public  ParseExceptiongenerateParseException()
    
final public  TokengetNextToken()
    
final public  TokengetToken(int index)
    

Field Detail
jj_input_stream
SimpleCharStream jj_input_stream(Code)



lookingAhead
public boolean lookingAhead(Code)



template
Template template(Code)



token_source
public FMParserTokenManager token_source(Code)



tokenjj_nt
public Token tokenjj_nt(Code)




Constructor Detail
FMParser
public FMParser(Template template, Reader reader, boolean strictEscapeSyntax, boolean stripWhitespace)(Code)
Constructs a new parser object.
Parameters:
  template - The template associated with this parser.
Parameters:
  reader - The character stream to use as input
Parameters:
  strictEscapeSyntax - Whether FreeMarker directives must start with a #



FMParser
public FMParser(Template template, Reader reader, boolean strictEscapeSyntax, boolean stripWhitespace, int tagSyntax)(Code)



FMParser
public FMParser(String template)(Code)



FMParser
public FMParser(java.io.InputStream stream)(Code)



FMParser
public FMParser(java.io.Reader stream)(Code)



FMParser
public FMParser(FMParserTokenManager tm)(Code)




Method Detail
AddSubExpression
final public Expression AddSubExpression(Expression exp) throws ParseException(Code)
Production that builds up an expression using the dot or dynamic key name or the args list if this is a method invocation.



AdditiveExpression
final public Expression AdditiveExpression() throws ParseException(Code)



AndExpression
final public Expression AndExpression() throws ParseException(Code)



Assign
final public TemplateElement Assign() throws ParseException(Code)



Attempt
final public AttemptBlock Attempt() throws ParseException(Code)



BooleanLiteral
final public Expression BooleanLiteral() throws ParseException(Code)



Break
final public BreakInstruction Break() throws ParseException(Code)
Production used to break out of a loop or a switch block.



BuiltIn
final public Expression BuiltIn(Expression exp) throws ParseException(Code)



BuiltinVariable
final public BuiltinVariable BuiltinVariable() throws ParseException(Code)



Call
final public TemplateElement Call() throws ParseException(Code)



Case
final public Case Case() throws ParseException(Code)



Comment
final public Comment Comment() throws ParseException(Code)



Compress
final public CompressedBlock Compress() throws ParseException(Code)



Content
final public TemplateElement Content() throws ParseException(Code)



DefaultTo
final public Expression DefaultTo(Expression exp) throws ParseException(Code)



DotVariable
final public Expression DotVariable(Expression exp) throws ParseException(Code)
production for when a key is specified by + keyname



DynamicKey
final public Expression DynamicKey(Expression exp) throws ParseException(Code)
production for when the key is specified in brackets.



EqualityExpression
final public Expression EqualityExpression() throws ParseException(Code)



Escape
final public EscapeBlock Escape() throws ParseException(Code)



Exists
final public Expression Exists(Expression exp) throws ParseException(Code)



Expression
final public Expression Expression() throws ParseException(Code)
This is the same as OrExpression, since the OR is the operator with the lowest precedence.



FallBack
final public FallbackInstruction FallBack() throws ParseException(Code)



Flush
final public TemplateElement Flush() throws ParseException(Code)



ForEach
final public IteratorBlock ForEach() throws ParseException(Code)



FreeMarkerText
final public TemplateElement FreeMarkerText() throws ParseException(Code)
A production freemarker text that may contain ${...} and #{...} but no directives.



FreemarkerDirective
final public TemplateElement FreemarkerDirective() throws ParseException(Code)
A production for FreeMarker directives.



HashLiteral
final public HashLiteral HashLiteral() throws ParseException(Code)



HeaderElement
final public void HeaderElement() throws ParseException(Code)



Identifier
final public Identifier Identifier() throws ParseException(Code)



IdentifierOrStringLiteral
final public Expression IdentifierOrStringLiteral() throws ParseException(Code)



If
final public TemplateElement If() throws ParseException(Code)



Import
final public LibraryLoad Import() throws ParseException(Code)



Include
final public Include Include() throws ParseException(Code)



List
final public IteratorBlock List() throws ParseException(Code)



ListLiteral
final public ListLiteral ListLiteral() throws ParseException(Code)



LooseDirectiveEnd
final public Token LooseDirectiveEnd() throws ParseException(Code)
Production to terminate potentially empty elements. Either a ">" or "/>"



Macro
final public Macro Macro() throws ParseException(Code)



MethodArgs
final public MethodCall MethodArgs(Expression exp) throws ParseException(Code)
production for an arglist part of a method invocation.



MultiplicativeExpression
final public Expression MultiplicativeExpression() throws ParseException(Code)
A unary expression followed by zero or more unary expressions with operators in between.



NamedArgs
final public HashMap NamedArgs() throws ParseException(Code)



Nested
final public TemplateElement Nested() throws ParseException(Code)



NoEscape
final public NoEscapeBlock NoEscape() throws ParseException(Code)



NoParse
final public TextBlock NoParse() throws ParseException(Code)



NotExpression
final public Expression NotExpression() throws ParseException(Code)



NumberLiteral
final public Expression NumberLiteral() throws ParseException(Code)



NumericalOutput
final public NumericalOutput NumericalOutput() throws ParseException(Code)



OptionalBlock
final public TemplateElement OptionalBlock() throws ParseException(Code)
A production for a block of optional content. Returns an empty Text block if there is no content.



OrExpression
final public Expression OrExpression() throws ParseException(Code)



PCData
final public TextBlock PCData() throws ParseException(Code)
Production for a block of raw text i.e. text that contains no FreeMarker directives.



ParamList
final public Map ParamList() throws ParseException(Code)



Parenthesis
final public Expression Parenthesis() throws ParseException(Code)



PositionalArgs
final public ArrayList PositionalArgs() throws ParseException(Code)



PrimaryExpression
final public Expression PrimaryExpression() throws ParseException(Code)
Lowest level expression, a literal, a variable, or a possibly more complex expression bounded by parentheses.



RangeExpression
final public Expression RangeExpression() throws ParseException(Code)



ReInit
public void ReInit(java.io.InputStream stream)(Code)



ReInit
public void ReInit(java.io.Reader stream)(Code)



ReInit
public void ReInit(FMParserTokenManager tm)(Code)



Recover
final public RecoveryBlock Recover() throws ParseException(Code)



Recurse
final public RecurseNode Recurse() throws ParseException(Code)



RelationalExpression
final public Expression RelationalExpression() throws ParseException(Code)



Return
final public ReturnInstruction Return() throws ParseException(Code)
Production used to jump out of a macro. The stop instruction terminates the rendering of the template.



Root
final public TemplateElement Root() throws ParseException(Code)
Root production to be used when parsing an entire file.



Setting
final public PropertySetting Setting() throws ParseException(Code)



Stop
final public StopInstruction Stop() throws ParseException(Code)



StringLiteral
final public StringLiteral StringLiteral(boolean interpolate) throws ParseException(Code)



StringOutput
final public DollarVariable StringOutput() throws ParseException(Code)
A production representing the ${...} that outputs a variable.



Switch
final public SwitchBlock Switch() throws ParseException(Code)



Transform
final public TransformBlock Transform() throws ParseException(Code)



Trim
final public TemplateElement Trim() throws ParseException(Code)



UnaryExpression
final public Expression UnaryExpression() throws ParseException(Code)
A primary expression preceded by zero or more unary operators. (The only unary operator we currently have is the NOT.)



UnaryPlusMinusExpression
final public Expression UnaryPlusMinusExpression() throws ParseException(Code)



UnifiedMacroTransform
final public TemplateElement UnifiedMacroTransform() throws ParseException(Code)



UnparsedContent
final public Token UnparsedContent(StringBuffer buf) throws ParseException(Code)
Production for dealing with unparsed content, i.e. what is inside a comment or noparse tag. It returns the ending token. The content of the tag is put in buf.



Visit
final public VisitNode Visit() throws ParseException(Code)



createExpressionParser
public static FMParser createExpressionParser(String s)(Code)
Create an FM expression parser using a string.



disable_tracing
final public void disable_tracing()(Code)



enable_tracing
final public void enable_tracing()(Code)



generateParseException
final public ParseException generateParseException()(Code)



getNextToken
final public Token getNextToken()(Code)



getToken
final public Token getToken(int index)(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.