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

org.snapscript.tree.Modifier Maven / Gradle / Ivy

There is a newer version: 1.4.6
Show newest version
package org.snapscript.tree;

import org.snapscript.core.ModifierType;
import org.snapscript.parse.StringToken;

public class Modifier {
   
   private ModifierType type;
   private StringToken token;

   public Modifier(StringToken token) {
      this.token = token;
   }

   public ModifierType getType() {
      String name = token.getValue();

      if(type == null) {
         type =  ModifierType.resolveModifier(name);
      }
      return type;
   } 

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy