blob: bbdacd79613fec942b307b72c57b43917abd8d67 [file] [log] [blame]
#include "TypeDef.h"
#include "Formatter.h"
#include <android-base/logging.h>
namespace android {
TypeDef::TypeDef(Type *type)
: NamedType(),
mReferencedType(type) {
}
const ScalarType *TypeDef::resolveToScalarType() const {
CHECK(!"Should not be here");
return NULL;
}
Type *TypeDef::referencedType() const {
return mReferencedType;
}
bool TypeDef::isInterface() const {
CHECK(!"Should not be here");
return false;
}
bool TypeDef::isEnum() const {
CHECK(!"Should not be here");
return false;
}
bool TypeDef::isTypeDef() const {
return true;
}
std::string TypeDef::getJavaType() const {
CHECK(!"Should not be here");
return std::string();
}
bool TypeDef::needsEmbeddedReadWrite() const {
CHECK(!"Should not be here");
return false;
}
bool TypeDef::resultNeedsDeref() const {
CHECK(!"Should not be here");
return false;
}
} // namespace android