File tree Expand file tree Collapse file tree
src/main/java/org/variantsync/diffdetective/variation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,12 +17,14 @@ public enum NodeType {
1717 ARTIFACT ("artifact" );
1818
1919 public final String name ;
20+
2021 NodeType (String name ) {
2122 this .name = name ;
2223 }
2324
2425 /**
25- * Returns true iff this node type represents a conditional feature annotation (i.e., if or elif).
26+ * Returns true iff this node type represents a conditional feature annotation
27+ * (i.e., if or elif).
2628 */
2729 public boolean isConditionalAnnotation () {
2830 return this == IF || this == ELIF ;
@@ -37,8 +39,10 @@ public boolean isAnnotation() {
3739
3840 /**
3941 * Creates a NodeType from its value names.
42+ *
4043 * @see Enum#name()
41- * @param name a string that equals the name of one value of this enum (ignoring case)
44+ * @param name a string that equals the name of one value of this enum (ignoring
45+ * case)
4246 * @return The NodeType that has the given name
4347 */
4448 public static NodeType fromName (final String name ) {
@@ -51,6 +55,8 @@ public static NodeType fromName(final String name) {
5155 throw new IllegalArgumentException ("Given string \" " + name + "\" is not the name of a NodeType." );
5256 }
5357
58+ // TODO: fromAnnotationType constructor with switch case
59+
5460 /**
5561 * Returns the number of bits required for storing {@link ordinal}.
5662 */
You can’t perform that action at this time.
0 commit comments