1 19 package org.netbeans.tax.spec; 20 21 import org.netbeans.tax.TreeElementDecl; 22 import org.netbeans.tax.TreeException; 23 import org.netbeans.tax.InvalidArgumentException; 24 25 30 public interface ElementDecl { 31 32 36 39 public static interface Constraints { 40 41 public void checkElementDeclName (String name) throws InvalidArgumentException; 42 43 public boolean isValidElementDeclName (String name); 44 45 46 public void checkElementDeclContentType (TreeElementDecl.ContentType contentType) throws InvalidArgumentException; 47 48 public boolean isValidElementDeclContentType (TreeElementDecl.ContentType contentType); 49 50 } 52 53 57 60 public static interface Creator { 61 62 65 public TreeElementDecl createElementDecl (String name, TreeElementDecl.ContentType contentType); 66 67 } 69 70 74 77 public static interface Writer { 78 79 public void writeElementDecl (TreeElementDecl elementDecl) throws TreeException; 80 81 } 83 } 84 | Popular Tags |