InputProvider.java 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. package me.hammerle.snuviscript.code;
  2. import me.hammerle.snuviscript.variable.Variable;
  3. import me.hammerle.snuviscript.math.Fraction;
  4. public abstract class InputProvider
  5. {
  6. public Object get(Script sc)
  7. {
  8. throw new ClassCastException();
  9. }
  10. public Fraction getFraction(Script sc)
  11. {
  12. throw new ClassCastException();
  13. }
  14. public int getInt(Script sc)
  15. {
  16. throw new ClassCastException();
  17. }
  18. public double getDouble(Script sc)
  19. {
  20. throw new ClassCastException();
  21. }
  22. public String getString(Script sc)
  23. {
  24. throw new ClassCastException();
  25. }
  26. public boolean getBoolean(Script sc)
  27. {
  28. throw new ClassCastException();
  29. }
  30. public Variable getVariable(Script sc)
  31. {
  32. throw new ClassCastException();
  33. }
  34. public void set(Script sc, Object o)
  35. {
  36. throw new ClassCastException();
  37. }
  38. public Object getArray(Script sc)
  39. {
  40. return null;
  41. }
  42. public boolean isArray(Script sc)
  43. {
  44. return false;
  45. }
  46. }