use of org.jf.smalidea.psi.impl.SmaliTypeElement in project smali by JesusFreke.
the class SmaliFieldElementType method createStub.
@Override
public SmaliFieldStub createStub(@NotNull SmaliField psi, StubElement parentStub) {
try {
String fieldSmaliTypeName;
SmaliTypeElement typeElement = psi.getTypeElement();
if (typeElement != null) {
fieldSmaliTypeName = typeElement.getSmaliName();
} else {
fieldSmaliTypeName = "Ljava/lang/Object;";
}
return new SmaliFieldStub(parentStub, psi.getName(), fieldSmaliTypeName);
} catch (IndexNotReadyException ex) {
System.out.println(psi.getName());
throw ex;
}
}
use of org.jf.smalidea.psi.impl.SmaliTypeElement in project smali by JesusFreke.
the class SmaliMethodPrototypeElementType method createStub.
@Override
public SmaliMethodPrototypeStub createStub(@NotNull SmaliMethodPrototype psi, StubElement parentStub) {
SmaliTypeElement returnType = psi.getReturnTypeElement();
String returnSmaliTypeName = null;
if (returnType != null) {
returnSmaliTypeName = returnType.getSmaliName();
}
return new SmaliMethodPrototypeStub(parentStub, returnSmaliTypeName);
}
Aggregations