/src/org/ooc/frontend/Visitor.java

http://github.com/nddrylliog/ooc · Java · 154 lines · 129 code · 25 blank · 0 comment · 0 complexity · 93c558eba675b407f4cb6836862d6389 MD5 · raw file

  1. package org.ooc.frontend;
  2. import java.io.IOException;
  3. import org.ooc.frontend.model.Add;
  4. import org.ooc.frontend.model.AddressOf;
  5. import org.ooc.frontend.model.ArrayAccess;
  6. import org.ooc.frontend.model.ArrayLiteral;
  7. import org.ooc.frontend.model.Assignment;
  8. import org.ooc.frontend.model.BinaryCombination;
  9. import org.ooc.frontend.model.BinaryNegation;
  10. import org.ooc.frontend.model.Block;
  11. import org.ooc.frontend.model.BoolLiteral;
  12. import org.ooc.frontend.model.BuiltinType;
  13. import org.ooc.frontend.model.Case;
  14. import org.ooc.frontend.model.Cast;
  15. import org.ooc.frontend.model.CharLiteral;
  16. import org.ooc.frontend.model.ClassDecl;
  17. import org.ooc.frontend.model.CommaSequence;
  18. import org.ooc.frontend.model.Compare;
  19. import org.ooc.frontend.model.CoverDecl;
  20. import org.ooc.frontend.model.Dereference;
  21. import org.ooc.frontend.model.Div;
  22. import org.ooc.frontend.model.Else;
  23. import org.ooc.frontend.model.FloatLiteral;
  24. import org.ooc.frontend.model.FlowControl;
  25. import org.ooc.frontend.model.For;
  26. import org.ooc.frontend.model.Foreach;
  27. import org.ooc.frontend.model.FunctionCall;
  28. import org.ooc.frontend.model.FunctionDecl;
  29. import org.ooc.frontend.model.If;
  30. import org.ooc.frontend.model.Import;
  31. import org.ooc.frontend.model.Include;
  32. import org.ooc.frontend.model.IntLiteral;
  33. import org.ooc.frontend.model.InterfaceDecl;
  34. import org.ooc.frontend.model.Line;
  35. import org.ooc.frontend.model.Match;
  36. import org.ooc.frontend.model.MemberAccess;
  37. import org.ooc.frontend.model.MemberArgument;
  38. import org.ooc.frontend.model.MemberAssignArgument;
  39. import org.ooc.frontend.model.MemberCall;
  40. import org.ooc.frontend.model.Mod;
  41. import org.ooc.frontend.model.Module;
  42. import org.ooc.frontend.model.Mul;
  43. import org.ooc.frontend.model.Node;
  44. import org.ooc.frontend.model.NodeList;
  45. import org.ooc.frontend.model.Not;
  46. import org.ooc.frontend.model.NullLiteral;
  47. import org.ooc.frontend.model.OpDecl;
  48. import org.ooc.frontend.model.Parenthesis;
  49. import org.ooc.frontend.model.RangeLiteral;
  50. import org.ooc.frontend.model.RegularArgument;
  51. import org.ooc.frontend.model.Return;
  52. import org.ooc.frontend.model.StringLiteral;
  53. import org.ooc.frontend.model.Sub;
  54. import org.ooc.frontend.model.Ternary;
  55. import org.ooc.frontend.model.Type;
  56. import org.ooc.frontend.model.Use;
  57. import org.ooc.frontend.model.ValuedReturn;
  58. import org.ooc.frontend.model.VarArg;
  59. import org.ooc.frontend.model.VariableAccess;
  60. import org.ooc.frontend.model.VariableDecl;
  61. import org.ooc.frontend.model.VersionBlock;
  62. import org.ooc.frontend.model.While;
  63. import org.ooc.frontend.parser.TypeArgument;
  64. import org.ooc.middle.structs.MultiMap;
  65. import org.ooc.middle.structs.NodeMap;
  66. public interface Visitor {
  67. public void visit(Module module) throws IOException;
  68. public void visit(Add add) throws IOException;
  69. public void visit(Mul mul) throws IOException;
  70. public void visit(Sub sub) throws IOException;
  71. public void visit(Div div) throws IOException;
  72. public void visit(Not not) throws IOException;
  73. public void visit(BinaryNegation binaryNegation) throws IOException;
  74. public void visit(Mod mod) throws IOException;
  75. public void visit(Compare compare) throws IOException;
  76. public void visit(FunctionCall functionCall) throws IOException;
  77. public void visit(MemberCall memberCall) throws IOException;
  78. public void visit(Parenthesis parenthesis) throws IOException;
  79. public void visit(Assignment assignment) throws IOException;
  80. public void visit(ValuedReturn return1) throws IOException;
  81. public void visit(Return return1) throws IOException;
  82. public void visit(NullLiteral nullLiteral) throws IOException;
  83. public void visit(IntLiteral numberLiteral) throws IOException;
  84. public void visit(FloatLiteral floatLiteral) throws IOException;
  85. public void visit(StringLiteral stringLiteral) throws IOException;
  86. public void visit(RangeLiteral rangeLiteral) throws IOException;
  87. public void visit(BoolLiteral boolLiteral) throws IOException;
  88. public void visit(CharLiteral charLiteral) throws IOException;
  89. public void visit(ArrayLiteral arrayLiteral) throws IOException;
  90. public void visit(Line line) throws IOException;
  91. public void visit(Include include) throws IOException;
  92. public void visit(Import import1) throws IOException;
  93. public void visit(Use use) throws IOException;
  94. public void visit(If if1) throws IOException;
  95. public void visit(Else else1) throws IOException;
  96. public void visit(While while1) throws IOException;
  97. public void visit(For for1) throws IOException;
  98. public void visit(Foreach foreach) throws IOException;
  99. public void visit(FlowControl break1) throws IOException;
  100. public void visit(VariableAccess variableAccess) throws IOException;
  101. public void visit(MemberAccess memberAccess) throws IOException;
  102. public void visit(ArrayAccess arrayAccess) throws IOException;
  103. public void visit(VariableDecl variableDecl) throws IOException;
  104. public void visit(FunctionDecl functionDecl) throws IOException;
  105. public void visit(ClassDecl classDecl) throws IOException;
  106. public void visit(CoverDecl cover) throws IOException;
  107. public void visit(InterfaceDecl interfaceDecl) throws IOException;
  108. public void visit(TypeArgument typeArgument) throws IOException;
  109. public void visit(RegularArgument regularArgument) throws IOException;
  110. public void visit(MemberArgument memberArgument) throws IOException;
  111. public void visit(MemberAssignArgument memberArgument) throws IOException;
  112. public void visit(Type type) throws IOException;
  113. public void visit(BuiltinType builtinType) throws IOException;
  114. public void visit(VarArg varArg) throws IOException;
  115. public void visit(NodeList<? extends Node> list) throws IOException;
  116. public void visit(NodeMap<?, ? extends Node> list) throws IOException;
  117. public void visit(MultiMap<?, ?> list) throws IOException;
  118. public void visit(Block block) throws IOException;
  119. public void visit(CommaSequence seq) throws IOException;
  120. public void visit(VersionBlock versionBlock) throws IOException;
  121. public void visit(Cast cast) throws IOException;
  122. public void visit(AddressOf addressOf) throws IOException;
  123. public void visit(Dereference dereference) throws IOException;
  124. public void visit(OpDecl opDecl) throws IOException;
  125. public void visit(BinaryCombination binaryCombination) throws IOException;
  126. public void visit(Ternary ternary) throws IOException;
  127. public void visit(Match match) throws IOException;
  128. public void visit(Case case1) throws IOException;
  129. }