* update JavaSymbolSolver to version 0.6.0 * moved to Javaparser 3.3.0 * fixed solving type parameter names in symbols solved in jar files * implemented ignoring name contexts in javassist and jre based method signatures to break infinite recursion
55 lines
1.0 KiB
Java
55 lines
1.0 KiB
Java
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.ConstructorDeclaration;
|
|
import com.github.javaparser.ast.body.Parameter;
|
|
import com.github.javaparser.ast.type.Type;
|
|
import com.github.javaparser.ast.type.UnknownType;
|
|
|
|
public class CallableConstructorDecl implements CallableDecl
|
|
{
|
|
private ConstructorDeclaration m_decl;
|
|
|
|
public CallableConstructorDecl(ConstructorDeclaration decl)
|
|
{
|
|
m_decl = decl;
|
|
}
|
|
|
|
public BodyDeclaration getWrappedNode()
|
|
{
|
|
return m_decl;
|
|
}
|
|
|
|
public boolean isMethod()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public String getName()
|
|
{
|
|
return m_decl.getNameAsString();
|
|
}
|
|
|
|
public NodeList<TypeParameter> getTypeParameters()
|
|
{
|
|
return m_decl.getTypeParameters();
|
|
}
|
|
|
|
public NodeList<Parameter> getParameters()
|
|
{
|
|
return m_decl.getParameters();
|
|
}
|
|
|
|
public Type getType()
|
|
{
|
|
return new UnknownType();
|
|
}
|
|
|
|
public boolean isStatic()
|
|
{
|
|
return m_decl.isStatic();
|
|
}
|
|
}
|