Class MethodParameter
java.lang.Object
org.apache.bcel.classfile.MethodParameter
Entry of the parameters table.
Implements Node as of 6.7.0.
- Since:
- 6.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAccepts a visitor.copy()Creates a deep copy of this object.final voiddump(DataOutputStream file) Dumps object to file stream on binary format.intGets the access flags.intGets the name index.getParameterName(ConstantPool constantPool) Gets the name of the parameter.booleanisFinal()Checks if this parameter is final.booleanChecks if this parameter is mandated.booleanChecks if this parameter is synthetic.voidsetAccessFlags(int accessFlags) Sets the access flags.voidsetNameIndex(int nameIndex) Sets the name index.
-
Constructor Details
-
MethodParameter
public MethodParameter()Constructs a MethodParameter.
-
-
Method Details
-
accept
-
copy
Creates a deep copy of this object.- Returns:
- deep copy of this object.
-
dump
Dumps object to file stream on binary format.- Parameters:
file- Output file stream.- Throws:
IOException- if an I/O error occurs.
-
getAccessFlags
-
getNameIndex
-
getParameterName
Gets the name of the parameter.- Parameters:
constantPool- The pool to query.- Returns:
- Constant from the given pool.
-
isFinal
Checks if this parameter is final.- Returns:
- true if this parameter is final.
-
isMandated
Checks if this parameter is mandated.- Returns:
- true if this parameter is mandated.
-
isSynthetic
Checks if this parameter is synthetic.- Returns:
- true if this parameter is synthetic.
-
setAccessFlags
Sets the access flags.- Parameters:
accessFlags- the access flags.
-
setNameIndex
Sets the name index.- Parameters:
nameIndex- the name index.
-