# Interface NamedAndTyped

All Known Implementing Classes:
  `FieldGen, FieldGenOrMethodGen, LocalVariableGen, MethodGen`

public interface NamedAndTyped
Denote entity that has both name and type. This is true for local variables, methods and fields.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getName()`
  Gets the name.
  `Type`
  `getType()`
  Gets the type.
  `void`
  `setName(String name)`
  Sets the name.
  `void`
  `setType(Type type)`
  Sets the type.

- ## Method Details

  - ### getName

    String getName()
    Gets the name.
    Returns:
      the name.

  - ### getType

    Type getType()
    Gets the type.
    Returns:
      the type.

  - ### setName

    void setName(String name)
    Sets the name.
    Parameters:
      `name` - the name.

  - ### setType

    void setType(Type type)
    Sets the type.
    Parameters:
      `type` - the type.