1 9 package com.vladium.jcd.cls; 10 11 import com.vladium.jcd.cls.constant.*; 12 import com.vladium.jcd.compiler.IClassFormatOutput; 13 14 21 public 22 interface IConstantCollection extends Cloneable , IClassFormatOutput 23 { 24 26 32 interface IConstantIterator 33 { 34 40 public int nextIndex (); 41 42 49 public CONSTANT_info nextConstant (); 50 51 56 CONSTANT_info set (CONSTANT_info constant); 57 58 } 60 61 66 interface IConstantComparator 67 { 68 boolean equals (CONSTANT_info constant); 69 70 } 72 73 75 91 CONSTANT_info get (int index); 92 93 100 IConstantIterator iterator (); 101 102 115 int find (int type, IConstantComparator comparator); 116 117 129 int findCONSTANT_Utf8 (String value); 130 131 136 int size (); 137 138 Object clone (); 140 141 void accept (IClassDefVisitor visitor, Object ctx); 143 144 145 147 154 int add (CONSTANT_info constant); 155 156 172 CONSTANT_info set (int index, CONSTANT_info constant); 173 174 } | Popular Tags |