Ejemplo n.º 1
0
        private void ParseSignature(XmlNode inner, PointCutDefinition def)
        {
            XmlNode             signature = inner.SelectSingleNode("signature");
            StringReader        reader    = new StringReader(signature.InnerText);
            AspectLanguageLexer lexer     = new AspectLanguageLexer(reader);
            AspectParser        parser    = new AspectParser(lexer);

            parser.ParsePointcutSignature(def);
        }
		protected EngineConfiguration ParseContents()
		{
			AspectLanguageLexer lexer = new AspectLanguageLexer(_reader);
			AspectParser parser = new AspectParser(lexer);

			try
			{
				return parser.Parse();
			}
			catch (antlr.RecognitionException e)
			{
				int line = e.getLine();
				int startColumn = e.getColumn();
				String filename = e.getFilename();
				LexicalInfo info = new LexicalInfo(filename, line, startColumn, -1);

				throw new BuilderException(info, e.Message);
			}
		}
        protected EngineConfiguration ParseContents()
        {
            AspectLanguageLexer lexer  = new AspectLanguageLexer(_reader);
            AspectParser        parser = new AspectParser(lexer);

            try
            {
                return(parser.Parse());
            }
            catch (antlr.RecognitionException e)
            {
                int         line        = e.getLine();
                int         startColumn = e.getColumn();
                String      filename    = e.getFilename();
                LexicalInfo info        = new LexicalInfo(filename, line, startColumn, -1);

                throw new BuilderException(info, e.Message);
            }
        }
Ejemplo n.º 4
0
		private void ParseSignature(XmlNode inner, PointCutDefinition def)
		{
			XmlNode signature = inner.SelectSingleNode("signature");
			StringReader reader = new StringReader(signature.InnerText);
			AspectLanguageLexer lexer = new AspectLanguageLexer(reader);
			AspectParser parser = new AspectParser(lexer);
			parser.ParsePointcutSignature(def);
		}
Ejemplo n.º 5
0
		public AspectParser(AspectLanguageLexer lexer) : base(lexer)
		{
		}
Ejemplo n.º 6
0
 public AspectParser(AspectLanguageLexer lexer) : base(lexer)
 {
 }