This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class QuickReturn { | |
private final static int ANIMATION_DURATION_MILLIS = 250; | |
private final ListView listView; | |
private final View quickReturnView; | |
private final View headerPlaceholder; | |
private int itemCount; | |
private int itemOffsetY[]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Target(ElementType.FIELD) | |
@Retention(RetentionPolicy.SOURCE) | |
public @interface Icicle { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Element fieldParentClass = element.getEnclosingElement(); | |
Name fieldName = element.getSimpleName(); | |
TypeMirror fieldType = element.asType(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (Map.Entry<TypeElement, Set<? extends Element>> entry : elementsByContainingClass.entrySet()) { | |
generateHelperWithClass(entry.getKey()).andElements(entry.getValue()); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Class<?> helper = Class.forName(helperClassName); | |
Method helperMethod = helper.getMethod(methodName, classOfTheObjectToHelp, Bundle.class); | |
helperMethod.invoke(null, objectToHelp, bundle); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class IcicleAssigner { | |
private final Types typeUtils; | |
private final Elements elementUtils; | |
public IcicleAssigner(Types typeUtils, Elements elementUtils) { | |
this.typeUtils = typeUtils; | |
this.elementUtils = elementUtils; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (element.getModifiers().contains(Modifier.FINAL) || | |
element.getModifiers().contains(Modifier.STATIC) || | |
element.getModifiers().contains(Modifier.PRIVATE)) { | |
error(element, "Field must not be private, static or final"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) { | |
for (TypeElement annotation : annotations) { | |
Set<? extends Element> elements = roundEnv.getElementsAnnotatedWith(annotation); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'java' | |
apply plugin: 'idea' | |
configurations { | |
provided | |
} | |
idea.module { | |
scopes.PROVIDED.plus += configurations.provided | |
} |
OlderNewer