MCPcopy Create free account
hub / github.com/acsoto/BUAA-Compiler / Var

Class Var

src/CodeGeneration/Var.java:3–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1package CodeGeneration;
2
3public class Var {
4 private int index;
5 private int dimension = 0;
6 private int dim1;
7 private int dim2;
8
9 public Var(int index) {
10 this.index = index;
11 }
12
13 public int getIndex() {
14 return index;
15 }
16
17 public int getDim1() {
18 return dim1;
19 }
20
21 public int getDim2() {
22 return dim2;
23 }
24
25 public void setDim1(int dim1) {
26 this.dim1 = dim1;
27 }
28
29 public void setDim2(int dim2) {
30 this.dim2 = dim2;
31 }
32
33 public int getDimension() {
34 return dimension;
35 }
36
37 public void setDimension(int dimension) {
38 this.dimension = dimension;
39 }
40}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected