/** * Create a new session using properties specified in the context. * * @param ctx * The context creating this session object. * The context contains all the configuration settings for this object. * @param args * Runtime session arguments. */ protected ParserSession(Parser ctx, ParserSessionArgs args) { super(ctx, args == null ? ParserSessionArgs.DEFAULT : args); args = args == null ? ParserSessionArgs.DEFAULT : args; this.ctx = ctx; javaMethod = args.javaMethod; outer = args.outer; listener = getInstanceProperty(PARSER_listener, ParserListener.class, ctx.getListenerClass()); }
/** * Create a new session using properties specified in the context. * * @param ctx * The context creating this session object. * The context contains all the configuration settings for this object. * @param args * Runtime session arguments. */ protected ParserSession(Parser ctx, ParserSessionArgs args) { super(ctx, args == null ? ParserSessionArgs.DEFAULT : args); args = args == null ? ParserSessionArgs.DEFAULT : args; this.ctx = ctx; javaMethod = args.javaMethod; outer = args.outer; listener = getInstanceProperty(PARSER_listener, ParserListener.class, ctx.getListenerClass()); }
/** * Create a new session using properties specified in the context. * * @param ctx * The context creating this session object. * The context contains all the configuration settings for this object. * @param args * Runtime session arguments. */ protected ParserSession(Parser ctx, ParserSessionArgs args) { super(ctx, args == null ? ParserSessionArgs.DEFAULT : args); args = args == null ? ParserSessionArgs.DEFAULT : args; this.ctx = ctx; javaMethod = args.javaMethod; outer = args.outer; listener = getInstanceProperty(PARSER_listener, ParserListener.class, ctx.getListenerClass()); }