Lines Matching refs:constant
15 import com.vladium.jcd.cls.constant.*;
36 throw new IllegalStateException ("assertion failure: dereferencing an invalid constant pool slot " + index);
53 final CONSTANT_info constant = (CONSTANT_info) m_constants.get (i);
55 if ((constant != null) && (constant.tag () == type) && comparator.equals (constant))
98 final CONSTANT_info constant = (CONSTANT_info) m_constants.get (c);
99 _clone.m_constants.add (constant == null ? null : constant.clone ());
136 public CONSTANT_info set (final int index, final CONSTANT_info constant)
142 throw new IllegalStateException ("assertion failure: dereferencing an invalid constant pool slot " + index);
144 if (result.width () != constant.width ())
147 m_constants.set (zindex, constant);
163 if (constant instanceof CONSTANT_Utf8_info)
164 m_CONSTANT_Utf8_index.put (((CONSTANT_Utf8_info) constant).m_value, zindex);
170 public int add (final CONSTANT_info constant)
172 m_constants.add (constant);
176 for (int width = 1; width < constant.width (); ++ width)
183 if ((m_CONSTANT_Utf8_index != null) && (constant instanceof CONSTANT_Utf8_info))
184 m_CONSTANT_Utf8_index.put (((CONSTANT_Utf8_info) constant).m_value, result /* !!! */ - 1);
229 public CONSTANT_info set (final CONSTANT_info constant)
235 throw new IllegalStateException ("assertion failure: dereferencing an invalid constant pool slot " + m_prev_index);
237 if (result.width () != constant.width ())
240 m_constants.set (zindex, constant);
282 final CONSTANT_info constant = (CONSTANT_info) m_constants.get (i);
284 if ((constant != null) && (constant.tag () == CONSTANT_Utf8_info.TAG))
287 index.put (((CONSTANT_Utf8_info) constant).m_value, i); // note: unadjusted index saved here