diff --git a/src/main/java/complexityparser/Model.java b/src/main/java/complexityparser/Model.java index f54a420cd85fec00900e166bad791c29c1ea99cf..b620976382a0ce8f9b115ed8a18e6f4a59b3c1d4 100644 --- a/src/main/java/complexityparser/Model.java +++ b/src/main/java/complexityparser/Model.java @@ -59,7 +59,7 @@ public class Model extends Observable { private boolean syntaxError = false; public Model() { - //The default Java program is below and in default.java + //The default Java program is below and in default.java. String defaultCode = "class Exe{ void main() {\n #init \n #init \n }}"; Path p = new File("default.java").toPath(); try { @@ -105,7 +105,7 @@ public class Model extends Observable { } /** - * Changes the String code that has to be analysed and performs the code analysis (It generates a new ANTLR tree) + * Changes the String code that has to be analysed and performs the code analysis (It generates a new ANTLR tree). * @param code - a string of code. */ public void setCode(String code) { diff --git a/src/main/java/complexityparser/tos/TOS.java b/src/main/java/complexityparser/tos/TOS.java index 677bb365e1ca70e6a67303f77dcac04caf6dc385..35d80217d65cf6cd91d5cf17b20a4bd63ee34122 100644 --- a/src/main/java/complexityparser/tos/TOS.java +++ b/src/main/java/complexityparser/tos/TOS.java @@ -133,7 +133,7 @@ public class TOS { * Every ID has to be unique inside the current block. * No check is done before or after inserting the ID so if an ID is redefined it will be overwritten without any warning. * @param i - the identifier of the entry. - * @param s - the tiered type of the entry. + * @param t - the tiered type of the entry. */ public void put(ID i, TieredType t) { array.get(currentBlock).put(i, t); @@ -143,7 +143,7 @@ public class TOS { * Adds a class id and a tiered type in the current block. * If it already exists the previous tiered type is overriden. * @param i - a class ID. - * @param s - a class tiered type. + * @param t - a class tiered type. */ public void put(ClassID i, ClassTieredType t) { if(currentBlock != 0) { diff --git a/src/main/java/complexityparser/tos/blocks/Block.java b/src/main/java/complexityparser/tos/blocks/Block.java index 87df031e46b7a017e01d9639301dfe1252dc2777..6eff7f1564ec3d3203901148982da53d2953187d 100644 --- a/src/main/java/complexityparser/tos/blocks/Block.java +++ b/src/main/java/complexityparser/tos/blocks/Block.java @@ -29,7 +29,7 @@ import java.util.Set; * - the name of the block, * - the index no of the block, * - the parent index noParent of the block, - * - a hashmap symbols containing every <ID, TieredType> entry (ID has to be unique). + * - a hashmap symbols containing every (ID, TieredType) entry (ID has to be unique). * This class should not be instanciated outside of the TOS class. */ public class Block { @@ -55,7 +55,7 @@ public class Block { /** * Adds an entry to a block. * @param i - an ID. - * @param s - a tiered type. + * @param t - a tiered type. */ public void put(ID i, TieredType t) { symbols.put(i, t); @@ -117,7 +117,7 @@ public class Block { /** * - * @return a set containing the <ID, TieredType> entries. + * @return a set containing the (ID, TieredType) entries. */ public Set<Map.Entry<ID, TieredType>> getMap() { return symbols.entrySet(); diff --git a/src/main/java/complexityparser/types/FOTier.java b/src/main/java/complexityparser/types/FOTier.java index cdef4ec485803dff0af138fe72d6ab4bc18ab006..53891404203e81ff7145a7ed626f5ea923548f7a 100644 --- a/src/main/java/complexityparser/types/FOTier.java +++ b/src/main/java/complexityparser/types/FOTier.java @@ -29,7 +29,6 @@ public class FOTier { * Class for encoding the First Order Tier of operators, constructors, and methods. * @param out - the output tier. * @param in - the input tiers. - * @param env - the environment tier. */ public FOTier(Tier out, Tier... in) { this.in = in; diff --git a/src/main/java/complexityparser/types/Tier.java b/src/main/java/complexityparser/types/Tier.java index 2e2ba03ab8c273bd96bd36691beb71d5ba37bcf3..0ed0a3903419d691076369961952f65ee409c23d 100644 --- a/src/main/java/complexityparser/types/Tier.java +++ b/src/main/java/complexityparser/types/Tier.java @@ -44,7 +44,7 @@ public enum Tier { /** * * @param t - several tiers. - * @return the minimum of the tiers under the precedence NONE<T0<T1. + * @return the minimum of the tiers under the precedence NONE < T0 < T1. */ public static Tier min(Tier... t) { if(t.length == 0) { @@ -65,7 +65,7 @@ public enum Tier { /** * * @param t - several tiers. - * @return the maximum of the given tiers under the precedence T0<T1<NONE. + * @return the maximum of the given tiers under the precedence T0 < T1 < NONE. */ public static Tier max(Tier... t) { if(t.length == 0) { diff --git a/src/main/java/view/EditorView.java b/src/main/java/view/EditorView.java index 5e6d7320d1828c6390d0c1a397643b88caefecff..64f85ad5b3af6b3d18aaedd0cae73d75ba1a0a96 100644 --- a/src/main/java/view/EditorView.java +++ b/src/main/java/view/EditorView.java @@ -118,6 +118,4 @@ public class EditorView extends JPanel implements Observer { area.setText(model.getCode()); panel.setViewportView(area); } - - } \ No newline at end of file