Example #1
0
        public static Antlr4.Runtime.Atn.LexerActionExecutor Append(Antlr4.Runtime.Atn.LexerActionExecutor lexerActionExecutor, ILexerAction lexerAction)
        {
            if (lexerActionExecutor == null)
            {
                return(new Antlr4.Runtime.Atn.LexerActionExecutor(new ILexerAction[] { lexerAction }));
            }
            ILexerAction[] lexerActions = Arrays.CopyOf(lexerActionExecutor.lexerActions, lexerActionExecutor.lexerActions.Length + 1);

            lexerActions[lexerActions.Length - 1] = lexerAction;
            return(new Antlr4.Runtime.Atn.LexerActionExecutor(lexerActions));
        }
Example #2
0
 public override bool Equals(object obj)
 {
     if (obj == this)
     {
         return(true);
     }
     else
     {
         if (!(obj is Antlr4.Runtime.Atn.LexerActionExecutor))
         {
             return(false);
         }
     }
     Antlr4.Runtime.Atn.LexerActionExecutor other = (Antlr4.Runtime.Atn.LexerActionExecutor)obj;
     return(hashCode == other.hashCode && Arrays.Equals(lexerActions, other.lexerActions));
 }
Example #3
0
 public AcceptStateInfo(int prediction, Antlr4.Runtime.Atn.LexerActionExecutor lexerActionExecutor)
 {
     this.prediction = prediction;
     this.lexerActionExecutor = lexerActionExecutor;
 }
Example #4
0
 public AcceptStateInfo(int prediction)
 {
     this.prediction = prediction;
     this.lexerActionExecutor = null;
 }
Example #5
0
 public AcceptStateInfo(int prediction, Antlr4.Runtime.Atn.LexerActionExecutor lexerActionExecutor)
 {
     this.prediction          = prediction;
     this.lexerActionExecutor = lexerActionExecutor;
 }
Example #6
0
 public AcceptStateInfo(int prediction)
 {
     this.prediction          = prediction;
     this.lexerActionExecutor = null;
 }