Package org.revapi.java.model
Class FieldElement
- java.lang.Object
-
- org.revapi.base.BaseElement<org.revapi.java.spi.JavaElement>
-
- org.revapi.java.model.AbstractJavaElement
-
- org.revapi.java.model.JavaElementBase<VariableElement,TypeMirror>
-
- org.revapi.java.model.FieldElement
-
- All Implemented Interfaces:
Cloneable
,Comparable<org.revapi.java.spi.JavaElement>
,org.revapi.Element<org.revapi.java.spi.JavaElement>
,org.revapi.java.spi.JavaElement
,org.revapi.java.spi.JavaFieldElement
,org.revapi.java.spi.JavaModelElement
public final class FieldElement extends JavaElementBase<VariableElement,TypeMirror> implements org.revapi.java.spi.JavaFieldElement
- Since:
- 0.1
- Author:
- Lukas Krejci
-
-
Field Summary
-
Fields inherited from class org.revapi.java.model.JavaElementBase
element, representation
-
Fields inherited from class org.revapi.java.model.AbstractJavaElement
environment
-
-
Constructor Summary
Constructors Constructor Description FieldElement(ProbingEnvironment env, org.revapi.Archive archive, VariableElement element, TypeMirror type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldElement
clone()
protected String
createComparableSignature()
static String
createComparableSignature(VariableElement field)
protected String
getHumanReadableElementType()
org.revapi.java.spi.JavaTypeElement
getParent()
-
Methods inherited from class org.revapi.java.model.JavaElementBase
cloneUnder, compareTo, createFullHumanReadableString, equals, getApi, getComparableSignature, getDeclaringElement, getFullHumanReadableString, getModelRepresentation, hashCode, isInherited, lookupChildElement, setInherited, setParent, toString
-
Methods inherited from class org.revapi.java.model.AbstractJavaElement
getTypeEnvironment, newReference, setArchive
-
Methods inherited from class org.revapi.base.BaseElement
castThis, getArchive, getChildren, getReferencedElements, getReferencingElements, iterateOverChildren, newChildrenInstance, searchChildren, searchChildren
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface org.revapi.Element
as, getApi, getArchive, getChildren, getCumulativeReferencedElements, getCumulativeReferencingElements, getFullHumanReadableString, getReferencedElements, getReferencingElements, iterateOverChildren, searchChildren, searchChildren, setParent, stream
-
-
-
-
Constructor Detail
-
FieldElement
public FieldElement(ProbingEnvironment env, org.revapi.Archive archive, VariableElement element, TypeMirror type)
-
-
Method Detail
-
createComparableSignature
public static String createComparableSignature(VariableElement field)
-
getParent
@Nonnull public org.revapi.java.spi.JavaTypeElement getParent()
- Specified by:
getParent
in interfaceorg.revapi.Element<org.revapi.java.spi.JavaElement>
- Specified by:
getParent
in interfaceorg.revapi.java.spi.JavaFieldElement
- Specified by:
getParent
in interfaceorg.revapi.java.spi.JavaModelElement
- Overrides:
getParent
in classJavaElementBase<VariableElement,TypeMirror>
-
getHumanReadableElementType
@Nonnull protected String getHumanReadableElementType()
- Specified by:
getHumanReadableElementType
in classJavaElementBase<VariableElement,TypeMirror>
-
createComparableSignature
protected String createComparableSignature()
- Specified by:
createComparableSignature
in classJavaElementBase<VariableElement,TypeMirror>
-
clone
public FieldElement clone()
- Overrides:
clone
in classJavaElementBase<VariableElement,TypeMirror>
-
-