Skip to content
Snippets Groups Projects
Commit f2cb6186 authored by dgelessus's avatar dgelessus
Browse files

Deprecate no longer used Analysis.(getIn|setIn|getOut|setOut)

SableCC itself was apparently the only user of these methods, and all of
its uses have now been replaced with dedicated fields.
parent 79128eb9
No related branches found
No related tags found
No related merge requests found
Pipeline #86228 passed
......@@ -6,9 +6,28 @@ import org.sablecc.sablecc.node.*;
public interface Analysis extends Switch
{
/**
* @deprecated If you need a map field, declare it yourself.
*/
@Deprecated
Object getIn(Node node);
/**
* @deprecated If you need a map field, declare it yourself.
*/
@Deprecated
void setIn(Node node, Object o);
/**
* @deprecated If you need a map field, declare it yourself.
*/
@Deprecated
Object getOut(Node node);
/**
* @deprecated If you need a map field, declare it yourself.
*/
@Deprecated
void setOut(Node node, Object o);
void caseStart(Start node);
......
......@@ -7,9 +7,22 @@ import org.sablecc.sablecc.node.*;
public class AnalysisAdapter implements Analysis
{
/**
* @deprecated If you need a map field, declare it yourself.
*/
@Deprecated
private Hashtable<Node,Object> in;
/**
* @deprecated If you need a map field, declare it yourself.
*/
@Deprecated
private Hashtable<Node,Object> out;
/**
* @deprecated If you need a map field, declare it yourself.
*/
@Deprecated
@Override
public Object getIn(Node node)
{
......@@ -21,6 +34,10 @@ public class AnalysisAdapter implements Analysis
return this.in.get(node);
}
/**
* @deprecated If you need a map field, declare it yourself.
*/
@Deprecated
@Override
public void setIn(Node node, Object o)
{
......@@ -39,6 +56,10 @@ public class AnalysisAdapter implements Analysis
}
}
/**
* @deprecated If you need a map field, declare it yourself.
*/
@Deprecated
@Override
public Object getOut(Node node)
{
......@@ -50,6 +71,10 @@ public class AnalysisAdapter implements Analysis
return this.out.get(node);
}
/**
* @deprecated If you need a map field, declare it yourself.
*/
@Deprecated
@Override
public void setOut(Node node, Object o)
{
......
......@@ -14,9 +14,28 @@ import $1$.*;
public interface Analysis extends Switch
{
/**
* @deprecated If you need a map field, declare it yourself.
*/
@Deprecated
Object getIn(Node node);
/**
* @deprecated If you need a map field, declare it yourself.
*/
@Deprecated
void setIn(Node node, Object o);
/**
* @deprecated If you need a map field, declare it yourself.
*/
@Deprecated
Object getOut(Node node);
/**
* @deprecated If you need a map field, declare it yourself.
*/
@Deprecated
void setOut(Node node, Object o);
......@@ -47,9 +66,22 @@ import $1$.*;
public class AnalysisAdapter implements Analysis
{
/**
* @deprecated If you need a map field, declare it yourself.
*/
@Deprecated
private Hashtable<Node,Object> in;
/**
* @deprecated If you need a map field, declare it yourself.
*/
@Deprecated
private Hashtable<Node,Object> out;
/**
* @deprecated If you need a map field, declare it yourself.
*/
@Deprecated
@Override
public Object getIn(Node node)
{
......@@ -61,6 +93,10 @@ public class AnalysisAdapter implements Analysis
return this.in.get(node);
}
/**
* @deprecated If you need a map field, declare it yourself.
*/
@Deprecated
@Override
public void setIn(Node node, Object o)
{
......@@ -79,6 +115,10 @@ public class AnalysisAdapter implements Analysis
}
}
/**
* @deprecated If you need a map field, declare it yourself.
*/
@Deprecated
@Override
public Object getOut(Node node)
{
......@@ -90,6 +130,10 @@ public class AnalysisAdapter implements Analysis
return this.out.get(node);
}
/**
* @deprecated If you need a map field, declare it yourself.
*/
@Deprecated
@Override
public void setOut(Node node, Object o)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment