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

org.snapscript.tree.constraint.FunctionName Maven / Gradle / Ivy

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

import java.util.List;

import org.snapscript.core.constraint.Constraint;
import org.snapscript.core.scope.Scope;
import org.snapscript.tree.NameReference;
import org.snapscript.tree.literal.TextLiteral;

public class FunctionName implements GenericName {

   private final NameReference reference;
   private final GenericList generics;

   public FunctionName(TextLiteral literal, GenericList generics) {
      this.reference = new NameReference(literal);
      this.generics = generics;
   }

   @Override
   public String getName(Scope scope) throws Exception{ // called from outer class
      return reference.getName(scope);
   }

   @Override
   public List getGenerics(Scope scope) throws Exception {
      return generics.getGenerics(scope);
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy