TypeLink

public interface TypeLink implements Link, WithType, WithModifiers, WithName(source)

An interface used to simply access classes, interfaces and enumerations.

Author

Dustin Glaser

Inheritors

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
public abstract Collection<? extends ConstructorLink> getConstructors()
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
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
public abstract Collection<? extends EnumConstantLink> getEnumConstants()
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
public abstract Collection<? extends MethodLink> getMethods()
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
public abstract Collection<? extends TypeLink> interfaces()
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 abstract 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 abstract 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
public abstract TypeLink superType()
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.