@NotNull @NonNls @Override public String getPresentableName() { return "Go SDK"; }
public AsmIntelTokenType(@NotNull @NonNls String debugName) { super(debugName, AsmIntelLanguage.INSTANCE); } }
public AsmIntelElementType(@NotNull @NonNls String debugName) { super(debugName, AsmIntelLanguage.INSTANCE); } }
public GoStubElementType(@NonNls @NotNull String debugName) { super(debugName, GoLanguage.INSTANCE); }
public GoNamedStubElementType(@NonNls @NotNull String debugName) { super(debugName); }
@NotNull @NonNls @Override public String getPresentableName() { return "Ballerina SDK"; }
protected GoLiveTemplateContextType(@NotNull @NonNls String id, @NotNull String presentableName, @Nullable Class<? extends TemplateContextType> baseContextType) { super(id, presentableName, baseContextType); }
/** * Set the text ID this block entity is saved to disk with. If this is not set, then load and * save of the "id" tag must be performed manually. * * @param saveId The ID. */ protected final void setSaveId(@NonNls String saveId) { if (this.saveId != null) { throw new IllegalStateException("Can only set saveId once"); } this.saveId = saveId; }
private static void block(int id, @NonNls String key) { key = VANILLA_PREFIX + key; names.put(id, key); blocks.put(key, id); }
/** * Returns the value of a {@code byte[]} subtag. * * @param key the key to look up * @return the tag value */ public byte[] getByteArray(@NonNls String key) { return get(key, ByteArrayTag.class); }
/** * Returns the value of a {@link String} subtag. * * @param key the key to look up * @return the tag value */ public String getString(@NonNls String key) { return get(key, StringTag.class); }
/** * Returns the value of a string subtag if it is present. * * @param key the key to look up * @return an Optional with the value of that tag if it's present and is a string; an empty * optional otherwise */ public Optional<String> tryGetString(@NonNls String key) { return tryGetTag(key, StringTag.class); }
/** * Returns the value of a list subtag with CompoundTag elements. * * @param key the key to look up * @return the tag value */ @SuppressWarnings("unchecked") public List<CompoundTag> getCompoundList(@NonNls String key) { return (List<CompoundTag>) getTagList(key, TagType.COMPOUND); }
/** * Test whether the subtag with the given key is of {@code int[]} type. * * @param key the key to look up * @return true if the subtag exists and is an {@code int[]}; false otherwise */ public boolean isIntArray(@NonNls String key) { return is(key, IntArrayTag.class); }
/** * Test whether the subtag with the given key is of {@link List} type with elements of type * {@link CompoundTag}. * * @param key the key to look up * @return true if the subtag exists and is a {@link List} with elements of type * {@link CompoundTag}; false otherwise */ public boolean isCompoundList(@NonNls String key) { return isList(key, TagType.COMPOUND); }
/** * Adds or replaces a list subtag with a list of strings. * * @param key the key to write to * @param list the list contents as strings, to convert to string tags */ public void putStringList(@NonNls String key, List<String> list) { putList(key, TagType.STRING, list, StringTag::new); }
/** * Adds or replaces a list subtag with a list of doubles. * * @param key the key to write to * @param list the list contents as doubles, to convert to double tags */ public void putDoubleList(@NonNls String key, List<Double> list) { putList(key, TagType.DOUBLE, list, DoubleTag::new); }
@NotNull @Override public PsiElement setName(@NonNls @NotNull String newName) throws IncorrectOperationException { PsiElement identifier = getIdentifier(); if (identifier != null) { identifier.replace(GoElementFactory.createIdentifierFromText(getProject(), newName)); } return this; }
@NotNull @Override public PsiElement setName(@NonNls @NotNull String newName) throws IncorrectOperationException { PsiElement identifier = getIdentifier(); if (identifier != null) { identifier.replace(BallerinaElementFactory.createIdentifierFromText(getProject(), newName)); } return this; }
@Override protected void checkResult(@NonNls String var1, PsiFile var2) throws IOException { doCheckResult((new File(getExpectedResultPath() + var1)).getParent(), var2, this.checkAllPsiRoots(), (new File(var1)).getName().replace("." + myFileExt, EMPTY_STRING), this.skipSpaces(), this.includeRanges()); } }