public class MethodInfo extends Object
| Modifier and Type | Field and Description | 
|---|---|
| static String | UNKNOWN_PARAM_NAME | 
| Constructor and Description | 
|---|
| MethodInfo() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addDefaultValue(PooledValue value)Add a default parameter value. | 
| Vector<PooledValue> | getDefaultValues() | 
| int | getFlags() | 
| String | getMethodName() | 
| int | getParamCount() | 
| List<String> | getParamNames() | 
| Vector<Name> | getParamTypes() | 
| Name | getReturnType() | 
| boolean | hasOptional() | 
| boolean | hasParamNames() | 
| boolean | isNative() | 
| boolean | needsRest() | 
| void | setFlags(int flags) | 
| void | setMethodName(String methodName) | 
| void | setParamNames(List<String> param_names)Set the method's parameter names, and update its flags accordingly. | 
| void | setParamTypes(Vector<Name> paramTypes) | 
| void | setReturnType(Name returnType) | 
| String | toString() | 
public static final String UNKNOWN_PARAM_NAME
public int getParamCount()
public void setMethodName(String methodName)
methodName - the methodName to setpublic String getMethodName()
public void setParamTypes(Vector<Name> paramTypes)
paramTypes - the paramTypes to setpublic void setReturnType(Name returnType)
returnType - the returnType to setpublic Name getReturnType()
public void setFlags(int flags)
flags - the method's flagspublic int getFlags()
public boolean hasOptional()
public boolean hasParamNames()
public boolean needsRest()
public boolean isNative()
public void addDefaultValue(PooledValue value)
public Vector<PooledValue> getDefaultValues()
hasOptional()public final List<String> getParamNames()
Copyright © 2016 The Apache Software Foundation. All rights reserved.