Class BasicTypeLink
java.lang.Object
org.tudalgo.algoutils.tutor.general.reflections.BasicTypeLink
- All Implemented Interfaces:
Identifiable,Stringifiable,Link,TypeLink,WithCtElement,WithModifiers,WithName,WithType
A basic implementation of a
type link.-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a collection of constructors declared in the type linked by this type link.spoon.reflect.declaration.CtElementReturns the CtElement associated with the element behind this link.Returns a collection of all enum constants contained in the type linked by this type link.Returns a collection of all fields contained in the type linked by this type link.Returns a collection of all methods contained in the type linked by this type link.Returns the identifier of this identifiable object.Returns a collection of all interfaces extended (interfaces) or implemented (classes and enums) by the type linked by this type link.kind()static BasicTypeLinkClass<?>Returns the actual type behind this type link.Returns the type link to the super type of the type linked by this type link.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.tudalgo.algoutils.tutor.general.match.Identifiable
stringMethods inherited from interface org.tudalgo.algoutils.tutor.general.reflections.TypeLink
getConstructor, getConstructors, getEnumConstant, getEnumConstants, getField, getFields, getInterface, getMethod, getMethods, interfaces, link, modifiers, name, type
-
Method Details
-
of
-
interfaces
Description copied from interface:TypeLinkReturns a collection of all interfaces extended (interfaces) or implemented (classes and enums) by the type linked by this type link.
- Specified by:
interfacesin interfaceTypeLink- Returns:
- the collection of interfaces
-
superType
Description copied from interface:TypeLinkReturns the type link to the super type of the type linked by this type link.
-
getFields
Description copied from interface:TypeLinkReturns a collection of all fields contained in the type linked by this type link.
-
getConstructors
Description copied from interface:TypeLinkReturns a collection of constructors declared in the type linked by this type link.
- Specified by:
getConstructorsin interfaceTypeLink- Returns:
- the collection of constructors
-
getEnumConstants
Description copied from interface:TypeLinkReturns a collection of all enum constants contained in the type linked by this type link.
- Specified by:
getEnumConstantsin interfaceTypeLink- Returns:
- the collection of enum constants
-
identifier
Description copied from interface:IdentifiableReturns the identifier of this identifiable object.
- Specified by:
identifierin interfaceIdentifiable- Specified by:
identifierin interfaceWithName- Returns:
- the identifier
-
reflection
Description copied from interface:TypeLinkReturns the actual type behind this type link.
- Specified by:
reflectionin interfaceLink- Specified by:
reflectionin interfaceTypeLink- Returns:
- the type
-
kind
-
getMethods
Description copied from interface:TypeLinkReturns a collection of all methods contained in the type linked by this type link.
- Specified by:
getMethodsin interfaceTypeLink- Returns:
- the collection of methods
-
getCtElement
public spoon.reflect.declaration.CtElement getCtElement()Description copied from interface:WithCtElementReturns the CtElement associated with the element behind this link.- Specified by:
getCtElementin interfaceWithCtElement- Returns:
- the CtElement
-