Sets the jump descriptor to use.
@param jumpDescriptor the jump descriptor to set
@return this behavior for chaining.
423862
public Jump<T> setJumpDescriptor (JumpDescriptor<T> jumpDescriptor) {
		this.jumpDescriptor = jumpDescriptor;
		this.target = null;
		this.isJumpAchievable = false;
		return this;
	}
1048933
private OffsetIndex createIndex(SegmentDescriptor descriptor) {
    return new DelegatingOffsetIndex(HeapBuffer.allocate(Math.min(DEFAULT_BUFFER_SIZE, descriptor.maxEntries()), OffsetIndex.size(descriptor.maxEntries())));
  }
890598
public IndexDescriptorDef getIndexDescriptor(String name)
    {
        IndexDescriptorDef indexDef = null;

        for (Iterator it = _indexDescriptors.iterator(); it.hasNext(); )
        {
            indexDef = (IndexDescriptorDef)it.next();
            if (indexDef.getName().equals(name))
            {
                return indexDef;
            }
        }
        return null;
    }
553869
public static InsnList jumpTo(LabelNode labelNode) {
        Validate.notNull(labelNode);

        InsnList ret = new InsnList();
        ret.add(new JumpInsnNode(Opcodes.GOTO, labelNode));

        return ret;
    }
442084
@Override
    public PropertyDescriptor[] getPropertyDescriptors() {
        try {
            ArrayList<PropertyDescriptor> descriptors = new ArrayList<PropertyDescriptor>();
            PropertyDescriptor descriptor;

            try {
                descriptor = new PropertyDescriptor("animated",
                        com.l2fprod.common.swing.JCollapsiblePane.class);
            } catch (IntrospectionException e) {
                descriptor = new PropertyDescriptor("animated",
                        com.l2fprod.common.swing.JCollapsiblePane.class, "getAnimated", null);
            }

            descriptor.setPreferred(true);

            descriptor.setBound(true);

            descriptors.add(descriptor);
            try {
                descriptor = new PropertyDescriptor("collapsed",
                        com.l2fprod.common.swing.JCollapsiblePane.class);
            } catch (IntrospectionException e) {
                descriptor = new PropertyDescriptor("collapsed",
                        com.l2fprod.common.swing.JCollapsiblePane.class, "getCollapsed", null);
            }

            descriptor.setPreferred(true);

            descriptor.setBound(true);

            descriptors.add(descriptor);

            return (PropertyDescriptor[]) descriptors
                    .toArray(new PropertyDescriptor[descriptors.size()]);
        } catch (Exception e) {
            // do not ignore, bomb politely so use has chance to discover what went
            // wrong...
            // I know that this is suboptimal solution, but swallowing silently is
            // even worse... Propose better solution!
            Logger.getLogger(JCollapsiblePane.class.getName()).log(Level.SEVERE, null, e);
        }
        return null;
    }
814385
@SuppressWarnings({"unchecked", "rawtypes"})
  public void setField(final FieldDescriptorType descriptor,
                       Object value) {
    if (descriptor.isRepeated()) {
      if (!(value instanceof List)) {
        throw new IllegalArgumentException(
          "Wrong object type used with protocol message reflection.");
      }

      // Wrap the contents in a new list so that the caller cannot change
      // the list's contents after setting it.
      final List newList = new ArrayList();
      newList.addAll((List) value);
      for (final Object element : newList) {
        verifyType(descriptor.getLiteType(), element);
      }
      value = newList;
    } else {
      verifyType(descriptor.getLiteType(), value);
    }

    if (value instanceof LazyField) {
      hasLazyField = true;
    }
    fields.put(descriptor, value);
  }
268344
@Required
    public void setDescriptors(final IPersonAttributes descriptors) {

        // Assertions.
        if (descriptors == null) {
            final String msg = "Argument 'descriptors' cannot be null";
            throw new IllegalArgumentException(msg);
        }

        this.descriptors = descriptors;

        if (this.logger.isDebugEnabled()) {
            this.logger.debug("invoking setDescriptors(" + descriptors + ")");
        }

    }
1186125
public static PropertyIdentifier getIdentifier(final ConfigDescriptor descriptor)
    {
        checkNotNull(descriptor);
        return new PropertyIdentifierImpl(descriptor.getConfigName(), descriptor.getMethod().getDeclaringClass());
    }
695009
static public IVariableAssigner setInstance(final IVariableAssigner newInstance)
    {
        final IVariableAssigner previousAssigner = instance;
        instance = newInstance;
        return previousAssigner;
    }
1064486
public void setClassOfObject(Class c)
    {
        m_Class = c;
        isAbstract = Modifier.isAbstract(m_Class.getModifiers());
        // TODO : Shouldn't the HashMap in DescriptorRepository be updated as well?
    }
362904
public MethodDescriptor toMethodDescriptor() {
        return DescriptorFactory.instance().getMethodDescriptor(getSlashedClassName(), method.getName(), method.getSignature(),
                method.isStatic());
    }
876604
public void assignProvidedProperties(ComponentDescriptor<?> descriptor, Object component) {
        AssignProvidedCallback callback = new AssignProvidedCallback(_injectionManager);
        callback.onEvent(component, descriptor);
    }
94169
@Deprecated
    @Override
    protected int writeDeltaTo(int jumpTarget) {
        int i=charsLength-jumpTarget;
        assert(i>=0);
        if(i<=CharsTrie.kMaxOneUnitDelta) {
            return write(i);
        }
        int length;
        if(i<=CharsTrie.kMaxTwoUnitDelta) {
            intUnits[0]=(char)(CharsTrie.kMinTwoUnitDeltaLead+(i>>16));
            length=1;
        } else {
            intUnits[0]=(char)(CharsTrie.kThreeUnitDeltaLead);
            intUnits[1]=(char)(i>>16);
            length=2;
        }
        intUnits[length++]=(char)i;
        return write(intUnits, length);
    }
976907
public void setDefine(final CUtil.StringArrayBuilder defList) throws BuildException {
    if (isReference()) {
      throw tooManyAttributes();
    }
    addDefines(defList.getValue(), true);
  }
395332
@Nonnull
    public BugInstance addField(FieldDescriptor fieldDescriptor) {
        FieldAnnotation fieldAnnotation = FieldAnnotation.fromFieldDescriptor(fieldDescriptor);
        add(fieldAnnotation);
        return this;
    }
224040
public void setSubjectDescriptor(String descriptor) {
        Validate.notNull(descriptor);
        Validate.notEmpty(descriptor);
        setProperty(ACModelProperty.SUBJECT_DESCRIPTOR, descriptor);
    }
155597
public BranchEvent setDescription(String description) {
        return addStandardProperty(Defines.Jsonkey.Description.getKey(), description);
    }