Package org.apache.bcel.generic
Interface NamedAndTyped
-
- All Known Implementing Classes:
FieldGen,FieldGenOrMethodGen,LocalVariableGen,MethodGen
public interface NamedAndTypedDenote entity that has both name and type. This is true for local variables, methods and fields.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetName()Gets the name.TypegetType()Gets the type.voidsetName(java.lang.String name)Sets the name.voidsetType(Type type)Sets the type.
-
-
-
Method Detail
-
getName
java.lang.String getName()
Gets the name.- Returns:
- the name.
-
getType
Type getType()
Gets the type.- Returns:
- the type.
-
setName
void setName(java.lang.String name)
Sets the name.- Parameters:
name- the name.
-
setType
void setType(Type type)
Sets the type.- Parameters:
type- the type.
-
-