1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
|
package org.shedlang.compiler.patio.serialization;
import org.shedlang.compiler.patio.PatioCompilationUnit;
import org.shedlang.compiler.patio.PatioCompilationUnitElement;
import org.shedlang.compiler.patio.instructions.PatioInstruction;
import org.shedlang.compiler.patio.instructions.transient0.HobgoblinTransient0Instructions;
import org.shedlang.compiler.patio.operands.PatioOperand;
import org.shedlang.compiler.patio.operands.transient0.HobgoblinTransient0Operands;
import org.shedlang.compiler.patio.transient0.HobgoblinTransient0Patio;
import org.shedlang.compiler.patio.types.PatioDataLayout;
import org.shedlang.compiler.patio.types.PatioDataValue;
import org.shedlang.compiler.patio.types.PatioType;
import org.shedlang.compiler.patio.types.transient0.HobgoblinTransient0Types;
import org.shedlang.compiler.patio.values.PatioDataPtrValue;
import org.shedlang.compiler.patio.values.PatioIntValue;
import org.shedlang.compiler.patio.values.transient0.HobgoblinTransient0Values;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.HashMap;
public class PatioToTransient0 {
public static void serializeCompilationUnit(
PatioCompilationUnit value,
OutputStream outputStream
) throws IOException {
HobgoblinTransient0Patio.encodePatioCompilationUnit(value, outputStream, new HashMap<>());
}
public static PatioCompilationUnit deserializeCompilationUnit(
InputStream inputStream
) throws IOException {
return HobgoblinTransient0Patio.decodePatioCompilationUnit(inputStream, new ArrayList<>());
}
static void serializeCompilationUnitElement(
PatioCompilationUnitElement value,
OutputStream outputStream
) throws IOException {
HobgoblinTransient0Patio.encodePatioCompilationUnitElement(value, outputStream, new HashMap<>());
}
static PatioCompilationUnitElement deserializeCompilationUnitElement(
InputStream inputStream
) throws IOException {
return HobgoblinTransient0Patio.decodePatioCompilationUnitElement(inputStream, new ArrayList<>());
}
static void serializeInstruction(
PatioInstruction value,
OutputStream outputStream
) throws IOException {
HobgoblinTransient0Instructions.encodePatioInstruction(value, outputStream, new HashMap<>());
}
static PatioInstruction deserializeInstruction(
InputStream inputStream
) throws IOException {
return HobgoblinTransient0Instructions.decodePatioInstruction(inputStream, new ArrayList<>());
}
static void serializeOperand(
PatioOperand value,
OutputStream outputStream
) throws IOException {
HobgoblinTransient0Operands.encodePatioOperand(value, outputStream, new HashMap<>());
}
static PatioOperand deserializeOperand(
InputStream inputStream
) throws IOException {
return HobgoblinTransient0Operands.decodePatioOperand(inputStream, new ArrayList<>());
}
static void serializeDataPtrValue(
PatioDataPtrValue value,
OutputStream outputStream
) throws IOException {
HobgoblinTransient0Values.encodePatioDataPtrValue(value, outputStream, new HashMap<>());
}
static PatioDataPtrValue deserializeDataPtrValue(
InputStream inputStream
) throws IOException {
return HobgoblinTransient0Values.decodePatioDataPtrValue(inputStream, new ArrayList<>());
}
static void serializeIntValue(
PatioIntValue value,
OutputStream outputStream
) throws IOException {
HobgoblinTransient0Values.encodePatioIntValue(value, outputStream, new HashMap<>());
}
static PatioIntValue deserializeIntValue(
InputStream inputStream
) throws IOException {
return HobgoblinTransient0Values.decodePatioIntValue(inputStream, new ArrayList<>());
}
static void serializeType(
PatioType value,
OutputStream outputStream
) throws IOException {
HobgoblinTransient0Types.encodePatioType(value, outputStream, new HashMap<>());
}
static PatioType deserializeType(
InputStream inputStream
) throws IOException {
return HobgoblinTransient0Types.decodePatioType(inputStream, new ArrayList<>());
}
static void serializeDataLayout(
PatioDataLayout value,
OutputStream outputStream
) throws IOException {
HobgoblinTransient0Types.encodePatioDataLayout(value, outputStream, new HashMap<>());
}
static PatioDataLayout deserializeDataLayout(
InputStream inputStream
) throws IOException {
return HobgoblinTransient0Types.decodePatioDataLayout(inputStream, new ArrayList<>());
}
static void serializeDataValue(
PatioDataValue value,
OutputStream outputStream
) throws IOException {
HobgoblinTransient0Types.encodePatioDataValue(value, outputStream, new HashMap<>());
}
static PatioDataValue deserializeDataValue(
InputStream inputStream
) throws IOException {
return HobgoblinTransient0Types.decodePatioDataValue(inputStream, new ArrayList<>());
}
}
|