net.sourceforge.makefileparser
Class Parser

java.lang.Object
  extended by net.sourceforge.makefileparser.Parser
All Implemented Interfaces:
Cloneable

public class Parser
extends Object
implements Cloneable

The Makefile parser

Author:
cgajo

Constructor Summary
Parser(VariableManager varManager)
          Create a new parser
 
Method Summary
 Object clone()
          Create a shallow copy (clone) of the Parser
 List<Target> getTargets()
          Get the (unmodifiable) list of targets
 void parse(File file)
          Parse the Makefile
 void parse(InputStream in)
          Parse the Makefile from a stream
 void parse(Reader reader)
          Parse the Makefile from the reader
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Parser

public Parser(VariableManager varManager)
Create a new parser

Method Detail

parse

public void parse(File file)
           throws IOException,
                  ParseException
Parse the Makefile

Throws:
IOException
ParseException

parse

public void parse(InputStream in)
           throws IOException,
                  ParseException
Parse the Makefile from a stream

Throws:
IOException
ParseException

parse

public void parse(Reader reader)
           throws IOException,
                  ParseException
Parse the Makefile from the reader

Throws:
IOException
ParseException

getTargets

public List<Target> getTargets()
Get the (unmodifiable) list of targets


toString

public String toString()
Overrides:
toString in class Object

clone

public Object clone()
             throws CloneNotSupportedException
Create a shallow copy (clone) of the Parser

Overrides:
clone in class Object
Throws:
CloneNotSupportedException


Copyright © 2009. All Rights Reserved.