Tabnine Logo
MagicConstant
Code IndexAdd Tabnine to your IDE (free)

How to use
MagicConstant
in
org.intellij.lang.annotations

Best Java code snippets using org.intellij.lang.annotations.MagicConstant (Showing top 20 results out of 315)

origin: go-lang-plugin-org/go-lang-idea-plugin

private void command(@NotNull @MagicConstant(stringValues = {NEXT, CONTINUE, HALT, SWITCH_THREAD, STEP}) String name) {
 send(new DlvRequest.Command(name)).done(myStateConsumer);
}
origin: org.onepf/openiab

@MagicConstant(intValues = {SETUP_DISPOSED, SETUP_IN_PROGRESS,
    SETUP_RESULT_FAILED, SETUP_RESULT_NOT_STARTED, SETUP_RESULT_SUCCESSFUL})
public int getSetupState() {
  return setupState;
}
origin: org.onepf/openiab

/**
 * Set strategy to help OpenIAB chose the correct billing provider.
 * <p/>
 *
 * @see Builder#setStoreSearchStrategy(int)
 */
@MagicConstant(intValues = {SEARCH_STRATEGY_INSTALLER, SEARCH_STRATEGY_BEST_FIT, SEARCH_STRATEGY_INSTALLER_THEN_BEST_FIT})
public int getStoreSearchStrategy() {
  return storeSearchStrategy;
}
origin: com.android.tools.layoutlib/layoutlib-api

/**
 * Returns if the IDE supports the requested feature.
 * @see Features
 * @since API 15
 */
public abstract boolean supports(
    @MagicConstant(valuesFromClass = Features.class) int ideFeature);
origin: org.onepf/openiab

/**
 * Returns current verify strategy value.
 *
 * @return The current verify mode value.
 * @see Builder#setVerifyMode(int)
 */
@MagicConstant(intValues = {VERIFY_EVERYTHING, VERIFY_ONLY_KNOWN, VERIFY_SKIP})
public int getVerifyMode() {
  return verifyMode;
}
origin: org.onepf/openiab

private Options(final Set<Appstore> availableStores,
        final Set<String> availableStoresNames,
        final Map<String, String> storeKeys,
        final boolean checkInventory,
        final @MagicConstant(intValues = {VERIFY_EVERYTHING, VERIFY_ONLY_KNOWN, VERIFY_SKIP}) int verifyMode,
        final Set<String> preferredStoreNames,
        final int samsungCertificationRequestCode,
        final int storeSearchStrategy) {
  this.checkInventory = checkInventory;
  this.availableStores = availableStores;
  this.availableStoreNames = availableStoresNames;
  this.storeKeys = storeKeys;
  this.preferredStoreNames = preferredStoreNames;
  this.verifyMode = verifyMode;
  this.samsungCertificationRequestCode = samsungCertificationRequestCode;
  this.storeSearchStrategy = storeSearchStrategy;
}
origin: antlr/intellij-plugin-v4

  public static TokenIElementType getTokenElementType(@MagicConstant(valuesFromClass = ANTLRv4Lexer.class)int ruleIndex){
    return TOKEN_ELEMENT_TYPES.get(ruleIndex);
  }
}
origin: antlr/intellij-plugin-v4

public static RuleIElementType getRuleElementType(@MagicConstant(valuesFromClass = ANTLRv4Parser.class)int ruleIndex){
  return RULE_ELEMENT_TYPES.get(ruleIndex);
}
public static TokenIElementType getTokenElementType(@MagicConstant(valuesFromClass = ANTLRv4Lexer.class)int ruleIndex){
origin: com.github.adedayo.intellij.sdk/java-psi-api

public abstract PsiElement shortenClassReferences(@NotNull PsiElement element,
                         @MagicConstant(flags = {DO_NOT_ADD_IMPORTS, INCOMPLETE_CODE}) int flags) throws IncorrectOperationException;
origin: org.onepf/openiab

/**
 * Sets up the store search strategy.
 *
 * @param storeSearchStrategy The store search strategy for OpenIAB.
 *                            Must be one of {@link #SEARCH_STRATEGY_INSTALLER}, {@link #SEARCH_STRATEGY_BEST_FIT} or {@link #SEARCH_STRATEGY_INSTALLER_THEN_BEST_FIT}
 * @see Options#getStoreSearchStrategy()
 */
@NotNull
public Builder setStoreSearchStrategy(
    final @MagicConstant(intValues = {
        SEARCH_STRATEGY_INSTALLER,
        SEARCH_STRATEGY_BEST_FIT,
        SEARCH_STRATEGY_INSTALLER_THEN_BEST_FIT}) int storeSearchStrategy) {
  this.storeSearchStrategy = storeSearchStrategy;
  return this;
}
origin: org.onepf/openiab

/**
 * Sets the verify mode for purchases. By default sets to {@link Options#VERIFY_EVERYTHING}.
 *
 * @param verifyMode The verify mode for stores. Must be one of {@link Options#VERIFY_EVERYTHING},
 *                   {@link Options#VERIFY_SKIP},
 *                   {@link Options#VERIFY_ONLY_KNOWN}.
 * @see Options#getVerifyMode()
 */
@NotNull
public Builder setVerifyMode(
    final @MagicConstant(intValues = {
        VERIFY_EVERYTHING,
        VERIFY_ONLY_KNOWN,
        VERIFY_SKIP}) int verifyMode) {
  this.verifyMode = verifyMode;
  return this;
}
origin: JetBrains/jediterm

public static final int ALL = LEFT | TOP | RIGHT | BOTTOM;
@MagicConstant(flags = {NONE, LEFT, TOP, RIGHT, BOTTOM, ALL})
public @interface SideMask {}
origin: com.github.adedayo.intellij.sdk/java-psi-api

/**
 * Creates a Java type code fragment from the text of the name of a Java type (the name
 * of a primitive type, array type or class).<br>
 * {@code void}, ellipsis and disjunctive types are optionally treated as valid ones.
 *
 * @param text       the text of the Java type to create.
 * @param context    the context for resolving references from the code fragment.
 * @param isPhysical whether the code fragment is created as a physical element
 *                   (see {@link PsiElement#isPhysical()}).
 * @param flags      types allowed to present in text.
 * @return the created code fragment.
 */
@NotNull
public abstract PsiTypeCodeFragment createTypeCodeFragment(@NotNull String text,
                              @Nullable PsiElement context,
                              boolean isPhysical,
                              @MagicConstant(flags = {ALLOW_VOID, ALLOW_ELLIPSIS, ALLOW_DISJUNCTION}) int flags);
origin: JetBrains/dekaf

/**
 * Allows to access an implementation-specific service.
 *
 * <p>
 *
 * </p>
 *
 * @param serviceClass  class or interface that is implemented by this service.
 * @param serviceName   name of the service, see {@link org.jetbrains.dekaf.core.ImplementationAccessibleService.Names}.
 * @param <I>           type of class or interface that is implemented by this service.
 * @return              the service.
 * @throws ClassCastException   when the requested service doesn't extend the specified class
 *                              and doesn't implement the specified interface.
 */
@Nullable
<I> I getSpecificService(@NotNull final Class<I> serviceClass,
             @NotNull @MagicConstant(valuesFromClass = Names.class) final String serviceName)
 throws ClassCastException;
origin: JetBrains/dekaf

 @Nullable
 @Override
 public <I> I getSpecificService(@NotNull final Class<I> serviceClass,
                 @NotNull @MagicConstant(valuesFromClass = Names.class) final String serviceName) throws ClassCastException {
  return myRemoteSeance.getSpecificService(serviceClass, serviceName);
 }
}
origin: org.onepf/openiab

    = SamsungAppsBillingService.REQUEST_CODE_IS_ACCOUNT_CERTIFICATION;
@MagicConstant(intValues = {VERIFY_EVERYTHING, VERIFY_ONLY_KNOWN, VERIFY_SKIP})
private int verifyMode = VERIFY_EVERYTHING;
@MagicConstant(intValues = {SEARCH_STRATEGY_INSTALLER, SEARCH_STRATEGY_BEST_FIT, SEARCH_STRATEGY_INSTALLER_THEN_BEST_FIT})
private int storeSearchStrategy = SEARCH_STRATEGY_INSTALLER;
origin: JetBrains/dekaf

 @Nullable
 @Override
 public <I> I getSpecificService(@NotNull final Class<I> serviceClass,
                 @NotNull @MagicConstant(valuesFromClass = Names.class) final String serviceName) {
  if (serviceName.equalsIgnoreCase(Names.INTERMEDIATE_SERVICE)) {
   return Objects.castTo(serviceClass, myInterSeance);
  }
  else {
   return myInterSeance.getSpecificService(serviceClass, serviceName);
  }
 }
}
origin: JetBrains/dekaf

@Override
@Nullable
public synchronized <I> I getSpecificService(@NotNull final Class<I> serviceClass,
                       @NotNull @MagicConstant(valuesFromClass = Names.class) final String serviceName)
  throws ClassCastException
{
 checkIsNotClosed();
 return myOriginalSession.getSpecificService(serviceClass, serviceName);
}
origin: org.onepf/openiab

@MagicConstant(intValues = {VERIFY_EVERYTHING, VERIFY_ONLY_KNOWN, VERIFY_SKIP})
public final int verifyMode;
@MagicConstant(intValues = {SEARCH_STRATEGY_INSTALLER, SEARCH_STRATEGY_BEST_FIT, SEARCH_STRATEGY_INSTALLER_THEN_BEST_FIT})
private final int storeSearchStrategy;
origin: com.github.adedayo.intellij.sdk/java-psi-api

public class PsiFormatUtil extends PsiFormatUtilBase {
 @MagicConstant(flags = {
  SHOW_MODIFIERS, SHOW_TYPE, TYPE_AFTER, SHOW_CONTAINING_CLASS, SHOW_FQ_NAME, SHOW_NAME, SHOW_MODIFIERS,
  SHOW_INITIALIZER, SHOW_RAW_TYPE, SHOW_RAW_NON_TOP_TYPE, SHOW_FQ_CLASS_NAMES})
 public @interface FormatVariableOptions { }
 @MagicConstant(flags = {
  SHOW_MODIFIERS, MODIFIERS_AFTER, SHOW_TYPE, TYPE_AFTER, SHOW_CONTAINING_CLASS, SHOW_FQ_NAME, SHOW_NAME,
  SHOW_PARAMETERS, SHOW_THROWS, SHOW_RAW_TYPE, SHOW_RAW_NON_TOP_TYPE, SHOW_FQ_CLASS_NAMES})
 public @interface FormatMethodOptions { }
 @MagicConstant(flags = {
  SHOW_MODIFIERS, SHOW_NAME, SHOW_ANONYMOUS_CLASS_VERBOSE, SHOW_FQ_NAME, MODIFIERS_AFTER,
  SHOW_EXTENDS_IMPLEMENTS, SHOW_REDUNDANT_MODIFIERS, JAVADOC_MODIFIERS_ONLY})
org.intellij.lang.annotationsMagicConstant

Most used methods

  • <init>

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (Timer)
  • getResourceAsStream (ClassLoader)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • ImageIO (javax.imageio)
  • Notification (javax.management)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now