PageRenderTime 178ms CodeModel.GetById 91ms app.highlight 16ms RepoModel.GetById 68ms app.codeStats 1ms

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