@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; }
public BallerinaCompositeElementType(@NotNull @NonNls String debugName) { super(debugName, BallerinaLanguage.INSTANCE); } }
public BallerinaNamedStubElementType(@NonNls @NotNull String debugName) { super(debugName); }
/** Build a new instance of @{link IgnoreElementType} */ public IgnoreElementType(@NotNull @NonNls String debugName) { super(debugName, IgnoreLanguage.INSTANCE); } }
/** * Gets whether or not the supplied rule is defined. * * @param rule the rule to lookup * @return true if defined, false otherwise */ public boolean isGameRule(@NonNls String rule) { return rule != null && gameRules.containsKey(rule); }
/** * Returns component name. * * @return component name */ @Override @NonNls @NotNull public String getComponentName() { return "IgnoreOuterComponent"; }
/** Builds a new instance of @{link IgnoreTokenType}. */ public IgnoreTokenType(@NotNull @NonNls String debugName) { super(debugName, IgnoreLanguage.INSTANCE); this.debugName = debugName; }
private static void block(int id, @NonNls String key) { key = VANILLA_PREFIX + key; names.put(id, key); blocks.put(key, id); }
/** * Get the Achievement with a given name. * * @param name the achievement name * @return the achievement, or null if none match */ @Nullable public static Achievement forName(@NonNls String name) { return ACHIEVEMENT_MAP.get(name); }
BallerinaCodeContextType(@NotNull @NonNls String id, @NotNull String presentableName, @Nullable Class<? extends TemplateContextType> baseContextType) { super(id, presentableName, baseContextType); }
/** * 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); }