net.sf.parser4j.parser.entity
Class ParseSession

java.lang.Object
  extended by net.sf.parser4j.parser.entity.ParseSession
All Implemented Interfaces:
IParseSessionForMatchMgr

public class ParseSession
extends java.lang.Object
implements IParseSessionForMatchMgr

data share between match manager

Author:
luc peuvrier

Constructor Summary
ParseSession()
           
 
Method Summary
 java.lang.Object getAttribute(java.lang.String attributeKey)
          get attribute by its key
 java.lang.String getParserInputFileName()
           
 void include(ParserFileReader parserFileReader)
           
 void removeAllAttribute()
          remove all attribute
 java.lang.Object setAttribute(java.lang.String attributeKey, java.lang.Object attribute)
          set attribute by its key
 void setParserInput(ParserInput parserInput)
           
 void setSyntaxMode(boolean syntaxMode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParseSession

public ParseSession()
Method Detail

setParserInput

public void setParserInput(ParserInput parserInput)
Parameters:
parserInput - the parserInput to set

setSyntaxMode

public void setSyntaxMode(boolean syntaxMode)
Parameters:
syntaxMode - the syntaxMode to set

removeAllAttribute

public void removeAllAttribute()
Description copied from interface: IParseSessionForMatchMgr
remove all attribute

Specified by:
removeAllAttribute in interface IParseSessionForMatchMgr
See Also:
Map.clear()

getAttribute

public java.lang.Object getAttribute(java.lang.String attributeKey)
Description copied from interface: IParseSessionForMatchMgr
get attribute by its key

Specified by:
getAttribute in interface IParseSessionForMatchMgr
Returns:
attribute object
See Also:
Map.get(java.lang.Object)

setAttribute

public java.lang.Object setAttribute(java.lang.String attributeKey,
                                     java.lang.Object attribute)
Description copied from interface: IParseSessionForMatchMgr
set attribute by its key

Specified by:
setAttribute in interface IParseSessionForMatchMgr
Returns:
previous attribute for the key
See Also:
Map.put(java.lang.Object, java.lang.Object)

getParserInputFileName

public java.lang.String getParserInputFileName()
Specified by:
getParserInputFileName in interface IParseSessionForMatchMgr
Returns:
parser input current file name
See Also:
ParserInput.getFileName()

include

public void include(ParserFileReader parserFileReader)
             throws ParserException
Specified by:
include in interface IParseSessionForMatchMgr
Throws:
ParserException


Copyright © 2008-2009 Luc Peuvrier. All Rights Reserved.