public NameAndTypeConstant addNameAndType(String name,String type){
  NameAndTypeConstant entry=getNameAndType(name,type);
  if (entry != null)   return entry;
  Utf8Constant nameEntry=addUTF8(name);
  Utf8Constant typeEntry=addUTF8(type);
  entry=new NameAndTypeConstant(this,_entries.size(),nameEntry.getIndex(),typeEntry.getIndex());
  addConstant(entry);
  return entry;
}

public NameAndTypeConstant addNameAndType ( String name , String type ) { NameAndTypeConstant entry = getNameAndType ( name , type ) ; if ( entry != null ) return entry ; Utf8Constant nameEntry = addUTF8 ( name ) ; Utf8Constant typeEntry = addUTF8 ( type ) ; entry = new NameAndTypeConstant ( this , _entries . size ( ) , nameEntry . getIndex ( ) , typeEntry . getIndex ( ) ) ; addConstant ( entry ) ; return entry ; }
adds a name - and - type constant .
