BasicTypeLink

public class BasicTypeLink implements TypeLink, WithCtElement(source)

A basic implementation of a type link.

Properties

Link copied to clipboard
public final List<BasicFieldLink> fields

Functions

Link copied to clipboard
Returns the constructor contained in the type linked by this type link and matched by the given matcher with the highest match score.
Link copied to clipboard
Returns a collection of constructors declared in the type linked by this type link.
public List<? extends ConstructorLink> getConstructors(Matcher<? super ConstructorLink> matcher)
Returns a list of all constructors contained in the type linked by this type link and matched by the given matcher.
Link copied to clipboard
public CtElement getCtElement()
Returns the CtElement associated with the element behind this link.
Link copied to clipboard
Returns the enum constant contained in the type linked by this type link and matched by the given matcher with the highest match score.
Link copied to clipboard
Returns a collection of all enum constants contained in the type linked by this type link.
public List<? extends EnumConstantLink> getEnumConstants(Matcher<? super EnumConstantLink> matcher)
Returns a list of all enum constants contained in the type linked by this type link and matched by the given matcher.
Link copied to clipboard
public FieldLink getField(Matcher<? super FieldLink> matcher)
Returns the field contained in the type linked by this type link and matched by the given matcher with the highest match score.
Link copied to clipboard
public abstract Collection<? extends FieldLink> getFields()
Returns a collection of all fields contained in the type linked by this type link.
public List<? extends FieldLink> getFields(Matcher<? super FieldLink> matcher)
Returns a list of all fields contained in the type linked by this type link and matched by the given matcher.
Link copied to clipboard
public TypeLink getInterface(Matcher<? super TypeLink> matcher)
Link copied to clipboard
public MethodLink getMethod(Matcher<? super MethodLink> matcher)
Returns the method contained in the type linked by this type link and matched by the given matcher with the highest match score.
Link copied to clipboard
Returns a collection of all methods contained in the type linked by this type link.
public List<? extends MethodLink> getMethods(Matcher<? super MethodLink> matcher)
Returns a list of all methods contained in the type linked by this type link and matched by the given matcher.
Link copied to clipboard
public String identifier()
Returns the identifier of this identifiable object.
Link copied to clipboard
Returns a collection of all interfaces extended (interfaces) or implemented (classes and enums) by the type linked by this type link.
public List<? extends TypeLink> interfaces(Matcher<? super TypeLink> matcher)
Link copied to clipboard
public Link.Kind kind()
Link copied to clipboard
public Class<? extends Object> link()
Link copied to clipboard
public int modifiers()
Return the bit representation of the modifiers of this link.
Link copied to clipboard
public String name()
Returns the name of this link.
Link copied to clipboard
public static BasicTypeLink of(Class<? extends Object> type)
Link copied to clipboard
public Class<? extends Object> reflection()
Returns the actual type behind this type link.
Link copied to clipboard
public String string()
Returns a human-readable string representation of this object.
Link copied to clipboard
Returns the type link to the super type of the type linked by this type link.
Link copied to clipboard
public TypeLink type()
Returns the type of this link.