All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.snapscript.parse.Rule Maven / Gradle / Ivy

package org.snapscript.parse;

public class Rule {
   
   private final RuleType type;
   private final String origin;
   private final String symbol;
   
   public Rule(RuleType type, String symbol, String origin) {
      this.origin = origin;
      this.symbol = symbol;
      this.type = type;
   }           
   
   public String getOrigin(){
      return origin;
   }
   
   public String getSymbol(){
      return symbol;
   }

   public RuleType getType() {
      return type;
   }     
   
   @Override
   public String toString(){
      return symbol;
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy