public class ElementsExtendedImpl extends Object implements ElementsExtended
Elements
with methods that cannot be added as
pure extension methods on MoreElements
because they require per-instance state.Constructor and Description |
---|
ElementsExtendedImpl(Elements inner,
Types types,
com.sun.source.util.Trees trees) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAllAnnotationMirrors, getAllMembers, getBinaryName, getConstantExpression, getDocComment, getElementValuesWithDefaults, getName, getPackageElement, getPackageOf, getTypeElement, hides, isDeprecated, isFunctionalInterface, overrides, printElements
public List<ExecutableElement> getDeclaredMethods(TypeElement owner, CharSequence name)
getDeclaredMethods
in interface ElementsExtended
public List<ExecutableElement> getAllMethods(TypeElement owner, CharSequence name)
getAllMethods
in interface ElementsExtended
public List<BridgeMethod> getBridgeMethods(TypeElement owner, CharSequence name)
getBridgeMethods
in interface ElementsExtended
public ExecutableElement getImplementation(ExecutableElement baseMethod, TypeElement inType)
getImplementation
in interface ElementsExtended
public TypeElement getBinaryImplementationOwner(ExecutableElement method, TypeElement inType)
getBinaryImplementationOwner
in interface ElementsExtended
public List<BridgeMethod> getAllBridgeMethods(TypeElement type)
getAllBridgeMethods
in interface ElementsExtended
public boolean isCompiledInCurrentRun(Element element)
isCompiledInCurrentRun
in interface ElementsExtended
public PackageElement getPackageElement(CharSequence name)
getPackageElement
in interface Elements
public TypeElement getTypeElement(CharSequence name)
getTypeElement
in interface Elements
public Map<? extends ExecutableElement,? extends AnnotationValue> getElementValuesWithDefaults(AnnotationMirror a)
getElementValuesWithDefaults
in interface Elements
public String getDocComment(Element e)
getDocComment
in interface Elements
public boolean isDeprecated(Element e)
isDeprecated
in interface Elements
public Name getBinaryName(TypeElement type)
getBinaryName
in interface Elements
public PackageElement getPackageOf(Element type)
getPackageOf
in interface Elements
public List<? extends Element> getAllMembers(TypeElement type)
getAllMembers
in interface Elements
public List<? extends AnnotationMirror> getAllAnnotationMirrors(Element e)
getAllAnnotationMirrors
in interface Elements
public boolean overrides(ExecutableElement overrider, ExecutableElement overridden, TypeElement type)
public String getConstantExpression(Object value)
getConstantExpression
in interface Elements
public void printElements(Writer w, Element... elements)
printElements
in interface Elements
public Name getName(CharSequence cs)
public boolean isFunctionalInterface(TypeElement type)
isFunctionalInterface
in interface Elements