Ejemplo n.º 1
0
        public static string Simple(PlSqlParser.IdContext context)
        {
            if (context == null)
                return null;

            return InputString.AsNotQuoted(context.GetText());
        }
Ejemplo n.º 2
0
        public static int? Integer(PlSqlParser.NumericContext context)
        {
            if (context == null)
                return null;

            var text = context.GetText();
            int value;
            if (!Int32.TryParse(text, out value))
                throw new ParseCanceledException(String.Format("Numeric '{0}' is not an integer.", text));

            return value;
        }
Ejemplo n.º 3
0
 public static string AsNotQuoted(PlSqlParser.Quoted_stringContext context)
 {
     return AsNotQuoted(context.GetText());
 }
Ejemplo n.º 4
0
        public static string Variable(PlSqlParser.Bind_variableContext context)
        {
            var text = context.GetText();
            if (String.IsNullOrEmpty(text))
                return text;

            if (text[0] == ':')
                text = text.Substring(1);

            return text;
        }
Ejemplo n.º 5
0
        public static string Simple(PlSqlParser.Regular_idContext context)
        {
            if (context == null)
                return null;

            return context.GetText();
        }