net.sf.jga.scripting
Class ScriptParser

java.lang.Object
  extended by net.sf.jga.parser.JFXGParser
      extended by net.sf.jga.scripting.ScriptParser
All Implemented Interfaces:
FunctorParser, JFXGParserConstants

public class ScriptParser
extends JFXGParser

ScriptParser.java

Copyright © 2007 David Hall

Author:
David Hall

Field Summary
 
Fields inherited from class net.sf.jga.parser.JFXGParser
ARG_NAME, jj_nt, lookingAhead, token, token_source
 
Fields inherited from interface net.sf.jga.parser.JFXGParserConstants
CHARACTER_LITERAL, CLASS, DECIMAL_LITERAL, DEFAULT, DIGIT, EOF, EXPONENT, FALSE, FLOATING_POINT_LITERAL, HEX_LITERAL, IDENTIFIER, INSTANCEOF, INTEGER_LITERAL, LETTER, LPAREN, NEW, NULL, OCTAL_LITERAL, STRING_LITERAL, THIS, tokenImage, TRUE
 
Constructor Summary
ScriptParser()
           
 
Method Summary
 javax.script.ScriptContext getScriptContext()
           
protected  FunctorRef<?,?> reservedWord(java.lang.String name)
          Allows for (not necessarily constant) values to be added to the grammar
 void setScriptContext(javax.script.ScriptContext context)
           
 
Methods inherited from class net.sf.jga.parser.JFXGParser
AdditiveExpression, addPromotionRule, AllocationExpression, AndExpression, ArgumentList, Arguments, AssignmentExpression, AssignmentOperator, bindThis, Boolean, boxUnboxFunctor, CastExpression, CastLookahead, Character, CompoundExpression, ConditionalAndExpression, ConditionalExpression, ConditionalOrExpression, demote, demoteExt, deportClass, deportPackage, disable_tracing, enable_tracing, EqualityExpression, Expression, findCommonPromotion, Float, Functor, generateParseException, getBoundObject, getBoxFunctor, getImportedClass, getImportedField, getImportedMethods, getInstance, getNextToken, getReferencedClass, getReturnType, getToken, getUnboxFunctor, importClass, importClass, ImportedMethodLookahead, ImportedStaticMethodCall, importField, importField, importJGA, importJGA, importMethod, importMethod, importMethod, importPackage, importStatics, InstanceOfExpression, Integer, isClassImported, isClassReference, isUndecoratedDecimal, Literal, LocalVariableDeclaration, main, MultiplicativeExpression, Name, Null, OrExpression, parse, parse, parse, parseBinary, parseBinary, parseBinaryRef, parseFunctor, parseFunctor, parseGenerator, parseGenerator, parseGeneratorRef, parseUnary, parseUnary, parseUnaryRef, PositionalArgument, PrimaryExpression, PrimaryPrefix, PrimarySuffix, promote, promoteExt, ReInit, ReInit, ReInit, ReInit, RelationalExpression, removePromotionRule, reservedField, reservedFunction, reservedMethod, resolveMethodName, setUndecoratedDecimal, ShiftExpression, String, Type, UnaryExpression, VariableDeclarator, VariableDeclaratorId, VariableInitializer, XorExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptParser

public ScriptParser()
Method Detail

getScriptContext

public javax.script.ScriptContext getScriptContext()

setScriptContext

public void setScriptContext(javax.script.ScriptContext context)

reservedWord

protected FunctorRef<?,?> reservedWord(java.lang.String name)
                                throws ParseException
Description copied from class: JFXGParser
Allows for (not necessarily constant) values to be added to the grammar

Overrides:
reservedWord in class JFXGParser
Throws:
ParseException


Copyright © 2002-2006 David A. Hall. All Rights Reserved.