Lines Matching defs:Layout

51     Layout def;     // the name and format of this attr
56 public Layout layout() { return def; }
67 public Attribute(Layout def, byte[] bytes, Object fixups) {
73 public Attribute(Layout def, byte[] bytes) {
108 private static final Map<Layout, Attribute> attributes = new HashMap<>();
109 private static final Map<Layout, Attribute> standardDefs = new HashMap<>();
130 Layout key = Layout.makeKey(ctype, name, layout);
134 a = new Layout(ctype, name, layout).canonicalInstance();
141 public static Layout keyForLookup(int ctype, String name) {
142 return Layout.makeKey(ctype, name);
147 public static Attribute lookup(Map<Layout, Attribute> defs, int ctype,
152 return defs.get(Layout.makeKey(ctype, name));
155 public static Attribute define(Map<Layout, Attribute> defs, int ctype,
158 defs.put(Layout.makeKey(ctype, name), a);
163 Map<Layout, Attribute> sd = standardDefs;
259 Map<Layout, Attribute> sd = standardDefs;
390 public Attribute getAttribute(Layout attrDef) {
403 public Attribute removeAttribute(Layout attrDef) {
450 class Layout implements Comparable {
472 public Layout(int ctype, String name, String layout) {
509 private Layout() {}
510 static Layout makeKey(int ctype, String name, String layout) {
511 Layout def = new Layout();
518 static Layout makeKey(int ctype, String name) {
530 return ( x != null) && ( x.getClass() == Layout.class ) &&
531 equals((Layout)x);
533 public boolean equals(Layout that) {
544 Layout that = (Layout) o;
840 Layout.Element[] tokenizeLayout(Layout self, int curCble, String layout) {
841 List<Layout.Element> col = new ArrayList<>(layout.length());
843 Layout.Element[] res = new Layout.Element[col.size()];
848 void tokenizeLayout(Layout self, int curCble, String layout, List<Layout.Element> col) {
853 Layout.Element e = self.new Element();
906 List<Layout.Element> cases = new ArrayList<>();
922 Layout.Element[] cbody
926 Layout.Element ce = self.new Element();
955 Layout.Element ce = self.new Element();
973 e.body = new Layout.Element[cases.size()];
977 Layout.Element ce = e.body[j];
996 Layout.Element ce = self.elems[target];
999 e.body = new Layout.Element[]{ ce };
1091 int tokenizeUInt(Layout.Element e, String layout, int i) {
1102 int tokenizeSInt(Layout.Element e, String layout, int i) {
1197 int parseUsing(Layout.Element[] elems, Holder holder,
1204 Layout.Element e = elems[i];
1257 Layout.Element ce = matchCase(e, value);
1298 Layout.Element matchCase(Layout.Element e, int value) {
1302 Layout.Element ce = e.body[j];
1311 int parseInt(Layout.Element e, byte[] bytes, int pos, int[] buf) {
1331 void unparseUsing(Layout.Element[] elems, Object[] fixups,
1336 Layout.Element e = elems[i];
1385 Layout.Element ce = matchCase(e, value);
1412 void unparseInt(Layout.Element e, int value, ByteArrayOutputStream out) {
1584 Layout self = new Layout(0, "Foo", layout);