org.snapscript.tree.constraint.FunctionName Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snap Show documentation
Show all versions of snap Show documentation
Dynamic scripting for the JVM
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);
}
}