Class BasicFieldLink
java.lang.Object
org.tudalgo.algoutils.tutor.general.reflections.BasicLink
org.tudalgo.algoutils.tutor.general.reflections.BasicFieldLink
- All Implemented Interfaces:
Identifiable,Stringifiable,FieldLink,Link,WithModifiers,WithName,WithType
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescription<T> Tget()Returns the object assigned to the type of this field.<T> TReturns the object assigned to the given instance.Returns the identifier of this identifiable object.intReturn the bit representation of the modifiers of this link.name()Returns the name of this link.static BasicFieldLinkReturns the type of the field linked by this field link.voidSets the object assigned to the type of this field.voidSets the object assigned to the given instance.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.tudalgo.algoutils.tutor.general.reflections.FieldLink
kind, link, typeMethods inherited from interface org.tudalgo.algoutils.tutor.general.match.Identifiable
string
-
Method Details
-
of
-
get
public <T> T get()Description copied from interface:FieldLinkReturns the object assigned to the type of this field.
This field is required to be an class field.
-
get
Description copied from interface:FieldLinkReturns the object assigned to the given instance.
This field is required to be an instance field.
-
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:FieldLinkReturns the type of the field linked by this field link.
- Specified by:
reflectionin interfaceFieldLink- Specified by:
reflectionin interfaceLink- Returns:
- the type
-
modifiers
public int modifiers()Description copied from interface:WithModifiersReturn the bit representation of the modifiers of this link.
- Specified by:
modifiersin interfaceFieldLink- Specified by:
modifiersin interfaceWithModifiers- Returns:
- the modifiers
-
staticType
- Specified by:
staticTypein interfaceFieldLink
-
set
Description copied from interface:FieldLinkSets the object assigned to the type of this field.
This field is required to be an class field.
-
set
Description copied from interface:FieldLinkSets the object assigned to the given instance.
This field is required to be an instance field.
-
toString
-
name
Description copied from interface:WithNameReturns the name of this link.
-