public AstRoot parse ( String sourceString , String sourceURI , int lineno ) { if ( parseFinished ) throw new IllegalStateException ( "parser reused" ) ; this . sourceURI = sourceURI ; if ( compilerEnv . isIdeMode ( ) ) { this . sourceChars = sourceString . toCharArray ( ) ; } this . ts = new TokenStream ( this , null , sourceString , lineno ) ; try { return parse ( ) ; } catch ( IOException iox ) { // Should never happen throw new IllegalStateException ( ) ; } finally { parseFinished = true ; } }
Builds a parse tree from the given source string .