net.sf.antcontrib.cpptasks.trolltech

Class MetaObjectParser

public final class MetaObjectParser extends AbstractParser

Scans a source file for Q_OBJECT.

Author: Curt Arnold

Method Summary
protected voidaddFilename(String filename)
Adds a filename to the list of included files.
AbstractParserStategetNewLineState()
Gets new line state.
static booleanhasQObject(Reader reader)
Determines if source file contains Q_OBJECT.
voidparse(Reader reader)
Parse input file.
voidsetQObject(boolean value)
Called FinalTState to set that Q_OBJECT was found.

Method Detail

addFilename

protected void addFilename(String filename)
Adds a filename to the list of included files.

Parameters: filename filename to be added

getNewLineState

public AbstractParserState getNewLineState()
Gets new line state.

Returns: AbstractParserState new line state.

hasQObject

public static boolean hasQObject(Reader reader)
Determines if source file contains Q_OBJECT.

Parameters: reader Reader source reader

Returns: boolean true if source contains Q_OBJECT

Throws: IOException if unable to read source file

parse

public void parse(Reader reader)
Parse input file.

Parameters: reader Reader source file

Throws: IOException if error reading source file

setQObject

public void setQObject(boolean value)
Called FinalTState to set that Q_OBJECT was found.

Parameters: value boolean new value for hasQObject

Copyright ? 2001-2011 Ant-Contrib project. All Rights Reserved.