}
if (value instanceof AstUtils.TypeLiteralValue) {
AstUtils.TypeLiteralValue classHandle = (AstUtils.TypeLiteralValue)value;
TypeLiteral newTypeLiteral = ast.newTypeLiteral();
Name typeName = ast.newName(classHandle.getClassName());
Type type = ast.newSimpleType(typeName);
newTypeLiteral.setType(type);
return newTypeLiteral;
}
if (value instanceof AstUtils.QualifiedNameValue) {
AstUtils.QualifiedNameValue enumMember = (AstUtils.QualifiedNameValue)value;
Name enumTypeName = ast.newName(enumMember.getName());
SimpleName enumMemberName = ast.newSimpleName(enumMember.getIdentifier());
return ast.newQualifiedName(enumTypeName, enumMemberName);
}
return ast.newNullLiteral();
}