Package com.google.turbine.processing
Class TurbineElement
- java.lang.Object
-
- com.google.turbine.processing.TurbineElement
-
- All Implemented Interfaces:
javax.lang.model.AnnotatedConstruct,javax.lang.model.element.Element
public abstract class TurbineElement extends java.lang.Object implements javax.lang.model.element.ElementAnElementimplementation backed by aSymbol.
-
-
Field Summary
Fields Modifier and Type Field Description protected ModelFactoryfactory
-
Constructor Summary
Constructors Modifier Constructor Description protectedTurbineElement(ModelFactory factory)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract com.google.common.collect.ImmutableList<AnnoInfo>annos()abstract booleanequals(@Nullable java.lang.Object obj)<A extends java.lang.annotation.Annotation>
AgetAnnotation(java.lang.Class<A> annotationType)java.util.List<? extends javax.lang.model.element.AnnotationMirror>getAnnotationMirrors()<A extends java.lang.annotation.Annotation>
A[]getAnnotationsByType(java.lang.Class<A> annotationType)abstract inthashCode()abstract java.lang.Stringjavadoc()protected <T> com.google.common.base.Supplier<T>memoize(com.google.common.base.Supplier<T> supplier)abstract Symbolsym()
-
-
-
Field Detail
-
factory
protected final ModelFactory factory
-
-
Constructor Detail
-
TurbineElement
protected TurbineElement(ModelFactory factory)
-
-
Method Detail
-
sym
public abstract Symbol sym()
-
javadoc
public abstract java.lang.String javadoc()
-
hashCode
public abstract int hashCode()
- Specified by:
hashCodein interfacejavax.lang.model.element.Element- Overrides:
hashCodein classjava.lang.Object
-
equals
public abstract boolean equals(@Nullable java.lang.Object obj)
- Specified by:
equalsin interfacejavax.lang.model.element.Element- Overrides:
equalsin classjava.lang.Object
-
memoize
protected <T> com.google.common.base.Supplier<T> memoize(com.google.common.base.Supplier<T> supplier)
-
getAnnotation
public <A extends java.lang.annotation.Annotation> A getAnnotation(java.lang.Class<A> annotationType)
- Specified by:
getAnnotationin interfacejavax.lang.model.AnnotatedConstruct- Specified by:
getAnnotationin interfacejavax.lang.model.element.Element
-
getAnnotationsByType
public final <A extends java.lang.annotation.Annotation> A[] getAnnotationsByType(java.lang.Class<A> annotationType)
- Specified by:
getAnnotationsByTypein interfacejavax.lang.model.AnnotatedConstruct
-
getAnnotationMirrors
public final java.util.List<? extends javax.lang.model.element.AnnotationMirror> getAnnotationMirrors()
- Specified by:
getAnnotationMirrorsin interfacejavax.lang.model.AnnotatedConstruct- Specified by:
getAnnotationMirrorsin interfacejavax.lang.model.element.Element
-
annos
protected abstract com.google.common.collect.ImmutableList<AnnoInfo> annos()
-
-