Package com.tonic.parser.attribute.table
Class MethodParameter
- java.lang.Object
-
- com.tonic.parser.attribute.table.MethodParameter
-
public class MethodParameter extends Object
Represents a method parameter in the MethodParameters attribute.
-
-
Constructor Summary
Constructors Constructor Description MethodParameter(ConstPool constPool, int nameIndex, int accessFlags)Constructs a method parameter entry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAccessFlags()StringgetName()Returns the parameter name.intgetNameIndex()StringtoString()
-
-
-
Constructor Detail
-
MethodParameter
public MethodParameter(ConstPool constPool, int nameIndex, int accessFlags)
Constructs a method parameter entry.- Parameters:
constPool- the constant pool for resolving referencesnameIndex- constant pool index of the parameter name, or 0 if unnamedaccessFlags- access flags for the parameter
-
-
Method Detail
-
getNameIndex
public int getNameIndex()
- Returns:
- the name index
-
getAccessFlags
public int getAccessFlags()
- Returns:
- the access flags
-
getName
public String getName()
Returns the parameter name.- Returns:
- the parameter name, or "<unnamed>" if not specified
-
-