LexCheck
2011 Version

gov.nih.nlm.nls.lexCheck.Gram
Class CheckGrammer

java.lang.Object
  extended by gov.nih.nlm.nls.lexCheck.Gram.CheckGrammer

public class CheckGrammer
extends java.lang.Object

This class provides methods of Grammer check for LexCheck, top level.

History:

Version:
V-2011
Author:
NLM Lexical System Development Team

Constructor Summary
CheckGrammer()
           
 
Method Summary
static boolean Check(LineObject lineObject, boolean printFlag, CheckSt st, CheckSt catSt, boolean debugFlag)
          Check if the grammer syntax for the input lexical record
static LexRecord GetLexRecord()
          Get the checked lexical record
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckGrammer

public CheckGrammer()
Method Detail

Check

public static boolean Check(LineObject lineObject,
                            boolean printFlag,
                            CheckSt st,
                            CheckSt catSt,
                            boolean debugFlag)
Check if the grammer syntax for the input lexical record

Parameters:
lineObject - the java object of the input line
printFlag - the flag for print out check result
st - the state of current checking
catSt - the state of category checking
debugFlag - the flag for print out debug information
Returns:
true or false for a legal or illegal syntax

GetLexRecord

public static LexRecord GetLexRecord()
Get the checked lexical record

Returns:
the checked lexical record in Java object of LexRecord

LexCheck
2011 Version

Submit a bug or feature

Copyright © 2011 National Library of Medicine