package bluej.debugger.gentype;

import java.lang.reflect.Modifier;
import java.util.Collections;
import java.util.List;

import bluej.parser.ConstructorOrMethodReflective;
import threadchecker.OnThread;
import threadchecker.Tag;


| Represents a method from a reflective. | | @author Davin McCall | public class MethodReflective extends ConstructorOrMethodReflective{ @OnThread(Tag.Any) private final String name; private final JavaType returnType;
| Construct a MethodReflective object. | @param name The name of the method | @param returnType The return type of the method | @param tparTypes The type parameter definitions (for a generic method); may be null | @param paramTypes The types of the method parameters | @param isVarArgs Whether the method is a "varargs" method. If true, the last paramType is |* the component type, not the array type. * @param isStatic Whether the method is a static method */ public MethodReflective(String name, JavaType returnType, List<GenTypeDeclTpar> tparTypes, | |List<JavaType> paramTypes, Reflective declaringType, boolean isVarArgs, int modifiers) | |{ | |this.name = name; | |this.returnType = returnType; | |this.tparTypes = tparTypes; | |this.paramTypes = paramTypes; | |this.declaringType = declaringType; | |this.isVarArgs = isVarArgs; | |this.modifiers = modifiers; | |} | |/** | Get the method name. | @OnThread(Tag.Any) public String getName() { return name; }
| Check whether the method is a static method. | public boolean isStatic() { return Modifier.isStatic(modifiers); } public boolean isAbstract() { return false; } public JavaType getReturnType() { return returnType; } }
top, use, map, class MethodReflective

.   getName
.   isStatic
.   isAbstract
.   getReturnType




47 neLoCode + 21 LoComm