public class State { @Tag("includeExplanation") public boolean includeExplanation = true; }
public class CompilerOptions { @Tag("useMixCompiler") public boolean useMixCompiler = true; @Tag("useDocs") public boolean attachDocsEnabled = true; @Tag("useDebugInfo") public boolean attachDebugInfoEnabled = true; @Tag("useWarningsAsErrors") public boolean warningsAsErrorsEnabled = false; @Tag("useIgnoreModuleConflict") public boolean ignoreModuleConflictEnabled = false; public CompilerOptions() { } public CompilerOptions(@NotNull CompilerOptions options){ useMixCompiler = options.useMixCompiler; attachDocsEnabled = options.attachDocsEnabled; attachDebugInfoEnabled = options.attachDebugInfoEnabled; warningsAsErrorsEnabled = options.warningsAsErrorsEnabled; ignoreModuleConflictEnabled = options.ignoreModuleConflictEnabled; } }
/** * Created by zyuyou on 2015/5/26. */ public class SettingsState { @Tag("mixPath") @NotNull private String myMixPath; private boolean supportsFormatterOption; SettingsState(){ myMixPath = ""; supportsFormatterOption = false; } SettingsState(SettingsState state){ myMixPath = state.myMixPath; supportsFormatterOption = state.supportsFormatterOption; } @Override public String toString() { return "SettingsState(mixPath='" + myMixPath + "')"; } }
@Tag("buildTags") public class GoBuildTargetSettings extends SimpleModificationTracker { public static final String ANY_COMPILER = "Any";
/** * @author Daniel Espendiller <daniel@espendiller.net> */ @Tag("routing_file") public class RoutingFile extends AbstractUiFilePath { public RoutingFile() { } public RoutingFile(@NotNull String path) { this.path = path; } }
@Tag("container_file") public class ContainerFile extends AbstractUiFilePath {
@Tag("method_signature_settings") public class MethodSignatureSetting {
@Tag("twig_namespace") public class TwigNamespaceSetting {
@Tag("method_parameter_settings") public class MethodParameterSetting {
@Tag("watch-expressions") public final String[] getWatchExpressions() { return watchExpressions != null ? watchExpressions : EMPTY_ARRAY; }
/** * Serialization object for communicating build settings with the build server. */ public class DLanguageBuildOptions { public static final String DEFAULT_DMD_PATH = "dmd"; public static final String DEFAULT_RDMD_PATH = "rdmd"; @Tag("dmdPath") public String myDmdPath = DEFAULT_DMD_PATH; @Tag("rdmdPath") public String myrDmdPath = DEFAULT_RDMD_PATH; public DLanguageBuildOptions() { } public DLanguageBuildOptions(final DLanguageBuildOptions options) { myDmdPath = options.myDmdPath; myrDmdPath = options.myrDmdPath; } @Override public String toString() { return "DLanguageBuildOptions{" + "myDmdPath=" + myDmdPath + ", myrDmdPath=" + myrDmdPath + '}'; } }
class PerlBrewData extends PerlRealVersionManagerData<PerlBrewData, PerlBrewHandler> { @Tag("info") private final Map<String, String> myInfo = new HashMap<>();
@Tag("artifact") private String artifact; @Tag("host") private String host = "localhost"; @Tag("port") private Integer port = 8080; @Tag("jvm_flags") private String jvmFlags; @Tag("environment") private Map<String, String> environment; @Tag("default_gcs_bucket_name") private String defaultGcsBucketName;
public class DLanguageModuleExtensionProperties { @Tag("parseTransforms") @XCollection(style = XCollection.Style.v1, elementName = "transform") public List<String> myParseTransforms = ContainerUtil.newArrayList(); //should not contain duplicate elements public DLanguageModuleExtensionProperties() { } public DLanguageModuleExtensionProperties(@NotNull final DLanguageModuleExtensionProperties props) { myParseTransforms = ContainerUtil.newArrayList(props.myParseTransforms); } }
@Tag("favorite") public static class FavoriteJob { @Attribute("name") public String name; @Attribute("url") public String url; } }
@Tag("additional-params") @NotNull private String myAdditionalDockerParameters = "";
@State(name = "SonarLintProjectState", storages = {@Storage("sonarlint-state.xml")}) public class SonarLintProjectState extends AbstractProjectComponent implements PersistentStateComponent<SonarLintProjectState> { @Tag private Long lastEventPolling = null;
@Tag("image-name") private String myImageName;