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

org.snapscript.tree.reference.GenericArgument Maven / Gradle / Ivy

package org.snapscript.tree.reference;

import static org.snapscript.core.constraint.Constraint.OBJECT;

import org.snapscript.core.constraint.Constraint;
import org.snapscript.parse.StringToken;

public class GenericArgument {
   
   private final Constraint constraint;
   
   public GenericArgument(StringToken token) {
      this(OBJECT, null);
   }
   
   public GenericArgument(Constraint constraint) {
      this(constraint, null);
   }
   
   public GenericArgument(Constraint constraint, StringToken token) {
      this.constraint = constraint;
   }
   
   public Constraint getConstraint() {
      return constraint;
   }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy