ADD week 5
This commit is contained in:
25
02-Easy5/E5/sources/org/intellij/lang/annotations/Flow.java
Normal file
25
02-Easy5/E5/sources/org/intellij/lang/annotations/Flow.java
Normal file
@ -0,0 +1,25 @@
|
||||
package org.intellij.lang.annotations;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.PARAMETER, ElementType.METHOD})
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
/* loaded from: classes.dex */
|
||||
public @interface Flow {
|
||||
public static final String DEFAULT_SOURCE = "The method argument (if parameter was annotated) or this container (if instance method was annotated)";
|
||||
public static final String DEFAULT_TARGET = "This container (if the parameter was annotated) or the return value (if instance method was annotated)";
|
||||
public static final String RETURN_METHOD_TARGET = "The return value of this method";
|
||||
public static final String THIS_SOURCE = "this";
|
||||
public static final String THIS_TARGET = "this";
|
||||
|
||||
String source() default "The method argument (if parameter was annotated) or this container (if instance method was annotated)";
|
||||
|
||||
boolean sourceIsContainer() default false;
|
||||
|
||||
String target() default "This container (if the parameter was annotated) or the return value (if instance method was annotated)";
|
||||
|
||||
boolean targetIsContainer() default false;
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
package org.intellij.lang.annotations;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public @interface Identifier {
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package org.intellij.lang.annotations;
|
||||
|
||||
@Deprecated
|
||||
/* loaded from: classes.dex */
|
||||
public final class JdkConstants {
|
||||
|
||||
public @interface AdjustableOrientation {
|
||||
}
|
||||
|
||||
public @interface BoxLayoutAxis {
|
||||
}
|
||||
|
||||
public @interface CalendarMonth {
|
||||
}
|
||||
|
||||
public @interface CursorType {
|
||||
}
|
||||
|
||||
public @interface FlowLayoutAlignment {
|
||||
}
|
||||
|
||||
public @interface FontStyle {
|
||||
}
|
||||
|
||||
public @interface HorizontalAlignment {
|
||||
}
|
||||
|
||||
public @interface HorizontalScrollBarPolicy {
|
||||
}
|
||||
|
||||
public @interface InputEventMask {
|
||||
}
|
||||
|
||||
public @interface ListSelectionMode {
|
||||
}
|
||||
|
||||
public @interface PatternFlags {
|
||||
}
|
||||
|
||||
public @interface TabLayoutPolicy {
|
||||
}
|
||||
|
||||
public @interface TabPlacement {
|
||||
}
|
||||
|
||||
public @interface TitledBorderJustification {
|
||||
}
|
||||
|
||||
public @interface TitledBorderTitlePosition {
|
||||
}
|
||||
|
||||
public @interface TreeSelectionMode {
|
||||
}
|
||||
|
||||
public @interface VerticalScrollBarPolicy {
|
||||
}
|
||||
|
||||
private JdkConstants() {
|
||||
throw new AssertionError("JdkConstants should not be instantiated");
|
||||
}
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package org.intellij.lang.annotations;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER, ElementType.LOCAL_VARIABLE, ElementType.ANNOTATION_TYPE})
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
/* loaded from: classes.dex */
|
||||
public @interface Language {
|
||||
String prefix() default "";
|
||||
|
||||
String suffix() default "";
|
||||
|
||||
String value();
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
package org.intellij.lang.annotations;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.FIELD, ElementType.PARAMETER, ElementType.LOCAL_VARIABLE, ElementType.ANNOTATION_TYPE, ElementType.METHOD})
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
/* loaded from: classes.dex */
|
||||
public @interface MagicConstant {
|
||||
long[] flags() default {};
|
||||
|
||||
Class<?> flagsFromClass() default void.class;
|
||||
|
||||
long[] intValues() default {};
|
||||
|
||||
String[] stringValues() default {};
|
||||
|
||||
Class<?> valuesFromClass() default void.class;
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package org.intellij.lang.annotations;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER, ElementType.LOCAL_VARIABLE, ElementType.ANNOTATION_TYPE})
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
/* loaded from: classes.dex */
|
||||
public @interface Pattern {
|
||||
String value();
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
package org.intellij.lang.annotations;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public @interface PrintFormat {
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package org.intellij.lang.annotations;
|
||||
|
||||
/* compiled from: PrintFormat.java */
|
||||
/* loaded from: classes.dex */
|
||||
class PrintFormatPattern {
|
||||
private static final String ARG_INDEX = "(?:\\d+\\$)?";
|
||||
private static final String CONVERSION = "(?:[tT])?(?:[a-zA-Z%])";
|
||||
private static final String FLAGS = "(?:[-#+ 0,(<]*)?";
|
||||
private static final String PRECISION = "(?:\\.\\d+)?";
|
||||
static final String PRINT_FORMAT = "(?:[^%]|%%|(?:%(?:\\d+\\$)?(?:[-#+ 0,(<]*)?(?:\\d+)?(?:\\.\\d+)?(?:[tT])?(?:[a-zA-Z%])))*";
|
||||
private static final String TEXT = "[^%]|%%";
|
||||
private static final String WIDTH = "(?:\\d+)?";
|
||||
|
||||
PrintFormatPattern() {
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
package org.intellij.lang.annotations;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER, ElementType.LOCAL_VARIABLE, ElementType.ANNOTATION_TYPE})
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
/* loaded from: classes.dex */
|
||||
public @interface RegExp {
|
||||
String prefix() default "";
|
||||
|
||||
String suffix() default "";
|
||||
}
|
13
02-Easy5/E5/sources/org/intellij/lang/annotations/Subst.java
Normal file
13
02-Easy5/E5/sources/org/intellij/lang/annotations/Subst.java
Normal file
@ -0,0 +1,13 @@
|
||||
package org.intellij.lang.annotations;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.LOCAL_VARIABLE, ElementType.PARAMETER})
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
/* loaded from: classes.dex */
|
||||
public @interface Subst {
|
||||
String value();
|
||||
}
|
Reference in New Issue
Block a user