org.jboss.dna.sequencer.java
Class CompilationUnitParser

java.lang.Object
  extended by org.jboss.dna.sequencer.java.CompilationUnitParser

public class CompilationUnitParser
extends Object

The Parser, that process the a compilation unit.

Author:
Serge Pagop

Constructor Summary
CompilationUnitParser()
           
 
Method Summary
static org.eclipse.jdt.core.dom.ASTNode runJLS3Conversion(char[] source, boolean resolveBindings)
          Parses and process the java source code as a compilation unit and the result it abstract syntax tree (AST) representation and this action uses the third edition of java Language Specification, that gets the possibility to support J2SE 5 during the parsing.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompilationUnitParser

public CompilationUnitParser()
Method Detail

runJLS3Conversion

public static org.eclipse.jdt.core.dom.ASTNode runJLS3Conversion(char[] source,
                                                                 boolean resolveBindings)
Parses and process the java source code as a compilation unit and the result it abstract syntax tree (AST) representation and this action uses the third edition of java Language Specification, that gets the possibility to support J2SE 5 during the parsing.

Parameters:
source - - the java source to be parsed (i.e. the char[] contains Java source).
resolveBindings - - for resolving bindings to get more informations from the unit.
Returns:
Abstract syntax tree representation.


Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.