package com.sourcetrail; import com.github.javaparser.ast.type.TypeParameter; import com.github.javaparser.ast.NodeList; import com.github.javaparser.ast.body.BodyDeclaration; import com.github.javaparser.ast.body.MethodDeclaration; import com.github.javaparser.ast.body.Parameter; import com.github.javaparser.ast.type.Type; public class CallableMethodDecl implements CallableDecl { private MethodDeclaration m_decl; public CallableMethodDecl(MethodDeclaration decl) { m_decl = decl; } public BodyDeclaration getWrappedNode() { return m_decl; } public boolean isMethod() { return true; } public String getName() { return m_decl.getNameAsString(); } public NodeList getTypeParameters() { return m_decl.getTypeParameters(); } public NodeList getParameters() { return m_decl.getParameters(); } public Type getType() { return m_decl.getType(); } public boolean isStatic() { return m_decl.isStatic(); } }