Package scriptingLanguage.variables

Source Code of scriptingLanguage.variables.InterpreterMethodClass

package scriptingLanguage.variables;

import java.util.ArrayList;

import scriptingLanguage.Token;
import scriptingLanguage.Type;
import scriptingLanguage.errors.UnexpectedTypeException;
import scriptingLanguage.frames.AbstractFrame;
import scriptingLanguage.frames.errors.FrameAccessException;

public class InterpreterMethodClass extends AbstractMethodClass {
 
  public InterpreterMethodClass(String name, Token source, AbstractClass<?> returnType, AbstractFrame frame, Type<?> tokenType) throws UnexpectedTypeException, FrameAccessException {
    super(name, source, returnType, frame, tokenType);
  }
 
  public InterpreterMethodClass(String name, Token source, AbstractClass<?> returnType, ArrayList<AbstractClass<?>> parameters, Type<?> tokenType) {
    super(name, source, returnType, parameters, tokenType);
  }
 
  @Override
  public Token makePlaceholder() {
    return new Token(new InterpreterMethod(this), getTokenType());
  }
 
  @Override
  public Variable<Token> clone() {
    return new InterpreterMethodClass(getName(), getSource(), getReturnType(), getParameters(), getTokenType());
  }
 
}
TOP

Related Classes of scriptingLanguage.variables.InterpreterMethodClass

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.