private void command(@NotNull @MagicConstant(stringValues = {NEXT, CONTINUE, HALT, SWITCH_THREAD, STEP}) String name) { send(new DlvRequest.Command(name)).done(myStateConsumer); }
@MagicConstant(intValues = {SETUP_DISPOSED, SETUP_IN_PROGRESS, SETUP_RESULT_FAILED, SETUP_RESULT_NOT_STARTED, SETUP_RESULT_SUCCESSFUL}) public int getSetupState() { return setupState; }
/** * 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; }
/** * Returns if the IDE supports the requested feature. * @see Features * @since API 15 */ public abstract boolean supports( @MagicConstant(valuesFromClass = Features.class) int ideFeature);
/** * 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; }
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; }
public static TokenIElementType getTokenElementType(@MagicConstant(valuesFromClass = ANTLRv4Lexer.class)int ruleIndex){ return TOKEN_ELEMENT_TYPES.get(ruleIndex); } }
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){
public abstract PsiElement shortenClassReferences(@NotNull PsiElement element, @MagicConstant(flags = {DO_NOT_ADD_IMPORTS, INCOMPLETE_CODE}) int flags) throws IncorrectOperationException;
/** * 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; }
/** * 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; }
public static final int ALL = LEFT | TOP | RIGHT | BOTTOM; @MagicConstant(flags = {NONE, LEFT, TOP, RIGHT, BOTTOM, ALL}) public @interface SideMask {}
/** * 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);
/** * 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;
@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); } }
= 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;
@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); } } }
@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); }
@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;
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})