Codota Logo
IMatchingRuleProvider
Code IndexAdd Codota to your IDE (free)

How to use
IMatchingRuleProvider
in
rocks.inspectit.shared.cs.ci.business.impl

Best Java code snippets using rocks.inspectit.shared.cs.ci.business.impl.IMatchingRuleProvider (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: inspectIT/inspectIT

/**
 * Identifies a matching rule provider.
 *
 * @param invocSequence
 *            {@link InvocationSequenceData} instance providing the evaluation context.
 * @param ruleProviders
 *            list of provider candidates.
 * @param <E>
 *            the type of the {@link IMatchingRuleProvider} instance.
 * @return one selected rule provider if any matches, otherwise null.
 */
private <E extends IMatchingRuleProvider> E identify(InvocationSequenceData invocSequence, List<E> ruleProviders) {
  for (E ruleProvider : ruleProviders) {
    boolean ruleMatches = ruleProvider.getMatchingRuleExpression().evaluate(invocSequence, cachedDataService);
    if (ruleMatches) {
      return ruleProvider;
    }
  }
  return null;
}
origin: inspectIT/inspectIT

/**
 * {@inheritDoc}
 */
@Override
public void commit(boolean onSave) {
  if (onSave) {
    dirty = false;
  }
  if (null != ruleProvider) {
    AbstractExpression expression = constructMatchingRuleExpression();
    ruleProvider.setMatchingRuleExpression(expression);
  }
}
origin: inspectIT/inspectIT

/**
 * {@inheritDoc}
 */
@Override
public void initContent(IMatchingRuleProvider ruleProvider) {
  this.ruleProvider = ruleProvider;
  setEditable(ruleProvider.isChangeable());
  boolean wasDirty = isDirty();
  AbstractExpression expression = ruleProvider.getMatchingRuleExpression();
  boolean isAdvanced = expression.isAdvanced();
  selectView(isAdvanced);
  if (wasDirty) {
    markDirty();
  }
  if ((expression instanceof BooleanExpression) && !((BooleanExpression) expression).isValue()) {
    OrExpression orExpression = new OrExpression();
    orExpression.setAdvanced(isAdvanced);
    ruleProvider.setMatchingRuleExpression(orExpression);
  }
  rulesView.initContent(ruleProvider);
}
origin: inspectIT/inspectIT

/**
 * {@inheritDoc}
 */
@Override
public void initContent(IMatchingRuleProvider ruleProvider) {
  this.ruleProvider = ruleProvider;
  ISelection selection = treeViewer.getSelection();
  setTreeInput(ruleProvider.getMatchingRuleExpression());
  treeViewer.setSelection(selection);
  resizeColumns();
  treeValidation.executeValidation(true);
}
origin: inspectIT/inspectIT

/**
 * {@inheritDoc}
 */
@Override
public void commit(boolean onSave) {
  if (null != ruleProvider) {
    AbstractExpression expression = constructMatchingRuleExpression();
    ruleProvider.setMatchingRuleExpression(expression);
  }
  if (onSave) {
    super.commit(onSave);
  }
}
origin: inspectIT/inspectIT

/**
 *
 * {@inheritDoc}
 */
@Override
public void initContent(IMatchingRuleProvider ruleProvider) {
  initializationPhase = true;
  this.ruleProvider = ruleProvider;
  reset();
  AbstractExpression matchingRuleExpression = ruleProvider.getMatchingRuleExpression();
  if (canShowRule(matchingRuleExpression)) {
    for (AbstractExpression expression : ((OrExpression) matchingRuleExpression).getOperands()) {
      addNewRuleEditingElement(expression);
    }
    commit(false);
  }
  layoutAndReflow();
  initializationPhase = false;
  listValidation.executeValidation(true);
}
rocks.inspectit.shared.cs.ci.business.implIMatchingRuleProvider

Javadoc

Common interface for entities that provide a AbstractExpression instance as a matching rule.

Most used methods

  • getMatchingRuleExpression
    Returns an AbstractExpression instance.
  • isChangeable
    Indicates whether the provided rule is allowed to be changed.
  • setMatchingRuleExpression
    Sets the AbstractExpression for this IMatchingRuleProvider instance.

Popular in Java

  • Start an intent from android
  • getResourceAsStream (ClassLoader)
  • orElseThrow (Optional)
  • getSystemService (Context)
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JOptionPane (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now